:root {
    --site-primary: #a05f3d;
    --site-primary-dark: #503329;
    --site-secondary: #6f8a6c;
    --site-accent: #ea7e20;
    --site-soft: #f8f2eb;
    --site-text: #1f2937;
    --site-muted: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f8fafc;
    color: var(--site-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 18px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    color: var(--site-primary);
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
    box-shadow: 0 12px 28px rgba(160, 95, 61, 0.24);
    font-size: 20px;
    font-weight: 800;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.logo-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-subtitle {
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}

.main-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--site-primary);
}

.header-search {
    position: relative;
    flex: 1 1 260px;
    max-width: 320px;
}

.header-search input,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    padding: 11px 16px;
    color: #111827;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 4px rgba(160, 95, 61, 0.12);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    padding: 10px 12px;
    color: #374151;
    font-weight: 800;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel-inner {
    display: grid;
    gap: 12px;
    padding: 16px 0 20px;
}

.mobile-panel a {
    border-radius: 12px;
    padding: 12px 14px;
    background: #f9fafb;
    font-weight: 700;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    color: #ffffff;
    background: radial-gradient(circle at 8% 18%, rgba(234, 126, 32, 0.45), transparent 30%), linear-gradient(135deg, #2f211d 0%, #5a3528 42%, #1f2937 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.84) 0%, rgba(17, 24, 39, 0.52) 46%, rgba(17, 24, 39, 0.08) 100%);
    pointer-events: none;
}

.hero-slide {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 600px;
}

.hero-slide.is-active {
    display: block;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.5;
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 40px;
    min-height: 600px;
    padding: 78px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 14px;
    color: #fde68a;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero-title {
    max-width: 780px;
    margin: 22px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero-desc {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.hero-meta span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    padding: 7px 12px;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.primary-btn,
.secondary-btn,
.text-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-accent), var(--site-primary));
    box-shadow: 0 16px 32px rgba(234, 126, 32, 0.28);
}

.secondary-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.text-btn {
    color: var(--site-primary);
    background: #fff7ed;
}

.primary-btn:hover,
.secondary-btn:hover,
.text-btn:hover {
    transform: translateY(-2px);
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
}

.hero-card-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.72);
    padding: 16px;
    backdrop-filter: blur(12px);
}

.hero-card-caption strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.hero-card-caption span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.section-pad {
    padding: 64px 0;
}

.section-soft {
    background: linear-gradient(135deg, #fff7ed, #eef6ee);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 28px;
}

.section-eyebrow {
    margin: 0 0 8px;
    color: var(--site-accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.section-desc {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--site-muted);
    line-height: 1.8;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(160, 95, 61, 0.38);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #ede5dc, #dfe7df);
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.cover-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.74);
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title a:hover {
    color: var(--site-primary);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.75;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-tags span {
    border-radius: 999px;
    background: #f3f4f6;
    padding: 5px 9px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border: 1px solid #eadfd5;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff, #fff7ed 55%, #eef6ee);
    padding: 24px;
    box-shadow: 0 16px 36px rgba(160, 95, 61, 0.08);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -52px;
    top: -48px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(234, 126, 32, 0.13);
}

.category-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 12px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: #4b5563;
    line-height: 1.75;
}

.category-count {
    position: relative;
    z-index: 1;
    display: inline-flex;
    border-radius: 999px;
    background: #ffffff;
    padding: 8px 12px;
    color: var(--site-primary);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.page-hero {
    background: linear-gradient(135deg, #3f2a22, #7c4a2f 50%, #2d3d2f);
    color: #ffffff;
    padding: 70px 0 62px;
}

.page-hero h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-btn {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    padding: 10px 14px;
    color: #374151;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn.is-active,
.filter-btn:hover {
    border-color: var(--site-primary);
    background: #fff7ed;
    color: var(--site-primary);
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 88px 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    padding: 12px 18px 12px 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.rank-number {
    color: var(--site-accent);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-poster img {
    width: 96px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    object-fit: cover;
}

.rank-main h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.rank-main p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-score {
    min-width: 76px;
    color: var(--site-primary);
    font-size: 22px;
    font-weight: 900;
    text-align: right;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1f1714, #68412f 55%, #263328);
    color: #ffffff;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.18;
    filter: blur(3px);
    transform: scale(1.05);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.56));
}

.detail-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 58px 0;
}

.detail-poster {
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-title {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.detail-lead {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.detail-meta span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 800;
}

.player-card {
    overflow: hidden;
    border: 1px solid #111827;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 26px 72px rgba(15, 23, 42, 0.22);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-frame video {
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.72));
    color: #ffffff;
    cursor: pointer;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-core {
    display: grid;
    place-items: center;
    gap: 14px;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-accent), var(--site-primary));
    box-shadow: 0 18px 45px rgba(234, 126, 32, 0.42);
    font-size: 30px;
    transform: translateX(2px);
}

.play-text {
    font-size: 18px;
    font-weight: 900;
}

.article-card {
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #ffffff;
    padding: 28px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.article-card + .article-card {
    margin-top: 22px;
}

.article-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 26px;
    font-weight: 900;
}

.article-card p {
    margin: 0;
    color: #374151;
    line-height: 1.95;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.related-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
}

.related-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.related-card strong {
    display: -webkit-box;
    overflow: hidden;
    padding: 12px;
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.site-footer {
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
    padding: 44px 0;
    color: #4b5563;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.footer-title {
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--site-primary);
}

.footer-copy {
    margin-top: 30px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    color: #6b7280;
    font-size: 14px;
}

.empty-state {
    display: none;
    border: 1px dashed #d1d5db;
    border-radius: 20px;
    background: #ffffff;
    padding: 32px;
    color: #6b7280;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

@media (max-width: 1024px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-content,
    .detail-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster-card,
    .detail-poster {
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-section,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 56px 0 88px;
    }

    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .section-head,
    .search-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: start;
    }

    .detail-inner {
        padding: 38px 0;
    }

    .rank-item {
        grid-template-columns: 56px 74px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .site-shell {
        width: min(100% - 22px, 1180px);
    }

    .logo-subtitle {
        display: none;
    }

    .movie-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .hero-title,
    .detail-title,
    .page-hero h1 {
        letter-spacing: -0.035em;
    }

    .card-body {
        padding: 16px;
    }
}
