/**
 * IMFDB Browser Frontend Styles
 * Streaming UI Cinematic Theme v2.0
 */

:root {
    --bg: #08080c;
    --bg-raised: #0f0f16;
    --bg-card: #12121a;
    --bg-hover: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.12);
    --text: #e8e8f0;
    --text-muted: #6e6e80;
    --text-dim: #4a4a5a;
    --accent: #e50914;
    --accent-hover: #f40612;
    --accent-gold: #c9a44c;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
    --transition: 0.2s ease;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sidebar-width: 240px;
}

/* ========== RESET & BASE ========== */
.imfdb-wrap,
.imfdb-wrap *,
.imfdb-wrap *::before,
.imfdb-wrap *::after {
    box-sizing: border-box;
}

.imfdb-body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.imfdb-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== HEADER ========== */
.imfdb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    background: rgba(8,8,12,0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.imfdb-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.imfdb-logo a {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.imfdb-logo a::before {
    content: '';
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 6px;
    display: inline-block;
    position: relative;
}

.imfdb-logo a::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bg);
    border-radius: 2px;
    margin-left: 8px;
    margin-top: -6px;
}

.imfdb-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.imfdb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all var(--transition);
    white-space: nowrap;
}

.imfdb-nav a:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.imfdb-nav a.active {
    color: var(--text);
    background: rgba(229,9,20,0.12);
}

.imfdb-search {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    transition: border-color var(--transition);
    min-width: 240px;
}

.imfdb-search:focus-within {
    border-color: var(--border-hover);
}

.imfdb-search input {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 14px;
    outline: none;
    flex: 1;
    padding: 6px 0;
    font-family: inherit;
}

.imfdb-search input::placeholder {
    color: var(--text-dim);
}

.imfdb-search button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    font-family: inherit;
}

.imfdb-search button:hover {
    background: var(--accent-hover);
}

/* Mobile header toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

/* ========== PAGE LAYOUT ========== */
.page-wrapper {
    display: flex;
    flex: 1;
    padding-top: 64px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-raised);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.sidebar-section {
    margin-bottom: 24px;
    padding: 0 16px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    margin-bottom: 10px;
    padding-left: 12px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin: 2px 0;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.sidebar a::before {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

/* Icons - only for Menu section */
.sidebar-section:first-child li:nth-child(1) a::before { content: '\2302'; }
.sidebar-section:first-child li:nth-child(2) a::before { content: '\23F3'; }
.sidebar-section:first-child li:nth-child(3) a::before { content: '\2630'; }
.sidebar-section:first-child li:nth-child(4) a::before { content: '\2726'; }
.sidebar-section:first-child li:nth-child(5) a::before { content: '\1F5BC'; }
.sidebar-section:first-child li:nth-child(6) a::before { content: '\1F3B2'; }

.sidebar a:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.sidebar a.active,
.sidebar a[aria-current="page"] {
    color: var(--text);
    background: rgba(229,9,20,0.1);
}

.sidebar a.active::after,
.sidebar a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    padding: 28px 32px;
    min-width: 0;
    max-width: calc(100% - var(--sidebar-width));
}

/* ========== HERO BANNER (Movie Pages) ========== */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    background: var(--bg-card);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8,8,12,0.98) 0%,
        rgba(8,8,12,0.85) 40%,
        rgba(8,8,12,0.4) 70%,
        rgba(8,8,12,0.1) 100%
    );
    z-index: 1;
}

.hero-banner .hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    filter: blur(2px) brightness(0.5);
    z-index: 0;
}

.hero-banner .hero-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    width: 100%;
    display: flex;
    gap: 28px;
    align-items: flex-end;
}

.hero-banner .hero-poster {
    flex-shrink: 0;
    width: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.hero-banner .hero-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-banner .hero-info {
    flex: 1;
    min-width: 0;
}

.hero-banner .hero-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-banner .hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-banner .hero-meta span {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-banner .hero-meta .rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-gold);
    font-weight: 600;
}

.hero-banner .hero-meta .rating::before {
    content: '\2605';
}

.hero-banner .hero-meta .year {
    background: rgba(255,255,255,0.08);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.hero-banner .hero-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0;
}

.hero-banner .hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.hero-banner .hero-actions .btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.hero-banner .hero-actions .btn-primary:hover {
    background: var(--accent-hover);
}

.hero-banner .hero-actions .btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.hero-banner .hero-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--border-hover);
}

/* ========== ARTICLE BODY ========== */
.article-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.article-body a {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.article-body a:hover {
    border-bottom-color: var(--accent-gold);
}

.article-body a.wiki-link {
    color: var(--accent-gold);
}

.article-body a.wiki-link:hover {
    border-bottom-color: var(--accent-gold);
}

.article-body a.external {
    color: #7fb3d5;
}

.article-body a.external:hover {
    border-bottom-color: #7fb3d5;
}

.article-body a.redlink {
    color: #e74c3c;
}

.article-body h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.article-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 14px;
    color: var(--text);
    line-height: 1.2;
}

.article-body h4 { font-size: 16px; font-weight: 700; margin: 24px 0 12px; }
.article-body h5 { font-size: 15px; font-weight: 700; margin: 20px 0 10px; }
.article-body h6 { font-size: 14px; font-weight: 600; color: var(--text-muted); margin: 16px 0 8px; }

/* CRITICAL: Headings must clear floated images */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    clear: both;
}

.article-body p {
    margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body blockquote {
    border-left: 3px solid var(--accent-gold);
    margin: 20px 0;
    padding: 12px 20px;
    background: var(--bg-raised);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

/* ========== INFOBOX ========== */
.infobox {
    float: right;
    width: 280px;
    max-width: 100%;
    margin: 0 0 24px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.infobox img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.infobox table {
    width: 100%;
    border-collapse: collapse;
}

.infobox th {
    text-align: left;
    padding: 10px 14px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    background: var(--bg-raised);
    width: 35%;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.infobox td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.infobox tr:last-child th,
.infobox tr:last-child td {
    border-bottom: none;
}

/* ========== TABLES ========== */
.wikitable {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.wikitable th {
    background: var(--bg-raised);
    color: var(--accent-gold);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.wikitable td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.wikitable tr:last-child td {
    border-bottom: none;
}

.wikitable tr:hover td {
    background: var(--bg-hover);
}

/* ========== IMAGES ========== */
.article-figure {
    margin: 20px 0;
    text-align: center;
}

.article-figure img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.article-figure figcaption {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.thumb {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin: 0 0 18px 18px;
    overflow: hidden;
    max-width: 100% !important;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.thumb img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-sm);
    display: block;
}

.thumbcaption {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
}

.thumbcaption a {
    color: var(--accent-gold);
}

.image-right {
    float: right;
    max-width: 320px !important;
}

.image-left {
    float: left;
    margin: 0 18px 18px 0;
    max-width: 320px !important;
}

/* Image gallery row */
.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.image-row .thumb {
    flex: 1 1 200px;
    margin: 0;
    max-width: none !important;
}

/* ========== TEMPLATES ========== */
.title-banner {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    padding: 28px;
    margin: 24px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    letter-spacing: -0.5px;
    box-shadow: var(--shadow-sm);
}

.toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 20px 0;
    max-width: 400px;
    box-shadow: var(--shadow-sm);
}

.toc .toctitle {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin: 0;
    padding: 0;
}

.toc a {
    display: block;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: all var(--transition);
}

.toc a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.main-article {
    background: var(--bg-raised);
    border-left: 3px solid var(--accent-gold);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 14px;
}

.redirect {
    background: rgba(229,9,20,0.08);
    border-left: 3px solid var(--accent);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 14px;
}

.disambig {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    margin: 20px 0;
    border-radius: var(--radius-md);
}

.disambig-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--accent-gold);
}

.disambig ul {
    margin: 0;
    padding-left: 20px;
}

/* ========== CATEGORY LINKS ========== */
.catlinks {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.catlinks a {
    color: var(--accent-gold);
    text-decoration: none;
    margin-right: 10px;
}

/* ========== LISTINGS ========== */
.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.imfdb-listing {
    list-style: none;
    padding: 0;
    margin: 0;
}

.imfdb-listing li {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}

.imfdb-listing li:hover {
    background: var(--bg-hover);
}

.imfdb-listing a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: block;
}

.imfdb-listing a:hover {
    color: var(--accent-gold);
}

.imfdb-listing .meta {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ========== SEARCH RESULTS ========== */
.search-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 12px;
    transition: all var(--transition);
}

.search-result:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-title a {
    color: var(--text);
    text-decoration: none;
}

.result-title a:hover {
    color: var(--accent-gold);
}

.result-snippet {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== GRID CARDS ========== */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.item-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.item-card:hover img {
    transform: scale(1.05);
}

.item-card .meta {
    padding: 12px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.pagination a {
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--border-hover);
}

.pagination span.current {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    font-weight: 600;
}

.pagination span:not(.current) {
    color: var(--text-dim);
}

/* ========== EMPTY STATE ========== */
.imfdb-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.imfdb-empty p {
    font-size: 16px;
    margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .image-right,
    .image-left {
        float: none;
        margin: 16px auto;
        max-width: 100% !important;
    }

    .infobox {
        float: none;
        width: 100%;
        margin: 0 0 24px 0;
    }

    .hero-banner .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-banner .hero-poster {
        width: 120px;
    }

    .hero-banner .hero-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    .imfdb-header-inner {
        padding: 0 16px;
        gap: 16px;
    }

    .imfdb-nav {
        display: none;
    }

    .imfdb-search {
        min-width: auto;
        flex: 1;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 64px;
        width: 260px;
        z-index: 99;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        padding: 20px 16px;
        max-width: 100%;
    }

    .hero-banner {
        min-height: auto;
    }

    .hero-banner .hero-title {
        font-size: 24px;
    }

    .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

/* ========== SPOILER ========== */
.spoiler {
    background: var(--bg-card);
    color: var(--bg-card);
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    transition: color 0.2s;
    border: 1px solid var(--border);
}

.spoiler:hover {
    color: var(--text);
}
