:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --green-600: #16a34a;
    --green-700: #15803d;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --white: #ffffff;
    --shadow-soft: 0 16px 42px rgba(41, 37, 36, 0.12);
    --shadow-card: 0 12px 32px rgba(68, 64, 60, 0.14);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-800);
    background: linear-gradient(180deg, var(--stone-50), rgba(254, 243, 199, 0.46) 54%, var(--stone-50));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(217, 119, 6, 0.22);
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(250, 250, 249, 0.96), rgba(240, 253, 244, 0.95));
    box-shadow: 0 8px 24px rgba(120, 113, 108, 0.12);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark,
.footer-brand span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 10px 26px rgba(217, 119, 6, 0.26);
}

.brand-text {
    font-size: clamp(22px, 3vw, 29px);
    color: transparent;
    background: linear-gradient(90deg, #92400e, #14532d);
    -webkit-background-clip: text;
    background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    color: var(--stone-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: var(--amber-600);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-700);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-search,
.mobile-search,
.inline-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54);
}

.nav-search input,
.mobile-search input,
.inline-search input,
.filter-input,
.filter-select {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--stone-800);
    background: transparent;
}

.nav-search input {
    width: 210px;
    padding: 10px 14px;
}

.nav-search button,
.mobile-search button,
.inline-search button {
    border: 0;
    color: var(--white);
    background: var(--amber-600);
    cursor: pointer;
}

.nav-search button {
    padding: 10px 14px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--stone-800);
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(217, 119, 6, 0.18);
}

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

.mobile-link {
    display: block;
    padding: 12px 2px;
    color: var(--stone-700);
    font-weight: 700;
}

.mobile-link.is-active {
    color: var(--amber-700);
}

.mobile-search {
    margin-top: 10px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 14px;
}

.mobile-search button {
    padding: 12px 16px;
}

.hero {
    position: relative;
    height: clamp(540px, 76vh, 690px);
    overflow: hidden;
    color: var(--white);
    background: var(--stone-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.62) 43%, rgba(0, 0, 0, 0.16));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    align-items: flex-end;
    padding-bottom: 76px;
}

.hero-copy {
    width: min(720px, 100%);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: var(--amber-100);
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

.hero h1 strong,
.hero h2 strong {
    display: block;
    color: var(--amber-100);
    font-size: 0.58em;
    letter-spacing: normal;
}

.hero-desc {
    max-width: 650px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.tag-row span,
.channel-pill,
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta span {
    padding: 7px 12px;
    color: var(--white);
    background: rgba(217, 119, 6, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn-primary,
.btn-ghost,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.32);
}

.btn-primary:hover,
.btn-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.24);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.btn-soft {
    color: #92400e;
    background: var(--amber-100);
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.52);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 30px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--white);
}

.page-main {
    padding: 54px 0 82px;
}

.section {
    margin-bottom: 66px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--stone-800);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
}

.section-title::before {
    width: 7px;
    height: 38px;
    content: "";
    border-radius: 999px;
    background: linear-gradient(180deg, var(--amber-600), var(--green-700));
}

.section-desc {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--stone-600);
}

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

.movie-grid.small {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 28px rgba(120, 113, 108, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--stone-200), var(--amber-100));
}

.movie-card-wide .poster-link {
    aspect-ratio: 16 / 9;
}

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.34s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-body h3 a:hover,
.breadcrumb a:hover {
    color: var(--amber-700);
}

.card-meta {
    margin: 0 0 10px;
    color: var(--stone-500);
    font-size: 14px;
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 13px;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span,
.channel-pill {
    padding: 4px 9px;
    color: #92400e;
    background: var(--amber-100);
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.channel-card {
    display: flex;
    min-height: 176px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(254, 243, 199, 0.72));
    box-shadow: 0 12px 30px rgba(120, 113, 108, 0.08);
}

.channel-card h2,
.channel-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.channel-card p {
    margin: 0 0 16px;
    color: var(--stone-600);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 26px rgba(120, 113, 108, 0.07);
}

.filter-input,
.filter-select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(217, 119, 6, 0.24);
    border-radius: 999px;
    background: var(--white);
}

.filter-input {
    flex: 1 1 280px;
}

.filter-select {
    flex: 0 0 160px;
}

.empty-state {
    display: none;
    padding: 32px;
    margin-top: 18px;
    border-radius: var(--radius-lg);
    color: var(--stone-600);
    text-align: center;
    background: rgba(255, 255, 255, 0.84);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 82px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(120, 113, 108, 0.07);
}

.rank-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
}

.rank-cover {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3 / 4;
}

.rank-cover img {
    height: 100%;
    object-fit: cover;
}

.rank-body h3 {
    margin: 0 0 4px;
    font-size: 19px;
}

.rank-body p {
    margin: 4px 0;
    color: var(--stone-600);
}

.breadcrumb {
    margin: 26px 0;
    color: var(--stone-600);
    font-size: 14px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(254, 243, 199, 0.62));
    box-shadow: var(--shadow-soft);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 20px 42px rgba(41, 37, 36, 0.22);
}

.detail-poster img {
    height: 100%;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

.detail-meta span {
    padding: 6px 11px;
    color: #92400e;
    background: var(--amber-100);
}

.detail-intro {
    margin: 20px 0 26px;
    color: var(--stone-600);
    font-size: 18px;
}

.player-section {
    margin: 42px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #050505;
    box-shadow: 0 24px 50px rgba(28, 25, 23, 0.28);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
    cursor: pointer;
    place-items: center;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    background: var(--amber-600);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    font-size: 34px;
    transform: translateX(3px);
}

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

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.article-box,
.side-box {
    padding: 24px;
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(120, 113, 108, 0.07);
}

.article-box h2,
.side-box h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-box p {
    margin: 0 0 18px;
    color: var(--stone-700);
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-link {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-link img {
    height: 82px;
    border-radius: 10px;
    object-fit: cover;
}

.side-link strong {
    display: block;
    line-height: 1.35;
}

.side-link span {
    color: var(--stone-500);
    font-size: 13px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid rgba(217, 119, 6, 0.18);
    background: linear-gradient(180deg, var(--stone-100), var(--stone-200));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 30px;
    padding: 44px 0;
}

.footer-grid p {
    max-width: 360px;
    color: var(--stone-600);
}

.footer-grid h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--stone-600);
}

.footer-grid a:hover {
    color: var(--amber-700);
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(120, 113, 108, 0.2);
    color: var(--stone-600);
    text-align: center;
}

@media (max-width: 1060px) {
    .desktop-nav,
    .nav-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .channel-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .nav-wrap {
        min-height: 64px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-text {
        font-size: 22px;
    }

    .hero {
        height: 620px;
    }

    .hero-inner {
        padding-bottom: 74px;
    }

    .hero-control {
        top: auto;
        bottom: 24px;
        transform: none;
    }

    .hero-prev {
        left: 16px;
    }

    .hero-next {
        right: 16px;
    }

    .hero-dots {
        bottom: 38px;
    }

    .section-head {
        display: block;
    }

    .feature-grid,
    .movie-grid,
    .movie-grid.small,
    .channel-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .detail-poster {
        max-width: 330px;
        margin: 0 auto;
    }

    .rank-item {
        grid-template-columns: 48px 70px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .filter-select {
        flex: 1 1 180px;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .movie-grid.small {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card h3 {
        font-size: 16px;
    }

    .card-desc {
        display: none;
    }

    .tag-row span:nth-child(n + 3) {
        display: none;
    }
}
