* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%, #fff7ed 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 1px solid #fcd34d;
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.12);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.brand-text {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #92400e, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.header-search {
    position: relative;
    flex: 1 1 360px;
    max-width: 480px;
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input,
.page-filter input {
    width: 100%;
    height: 42px;
    border: 2px solid #fcd34d;
    border-radius: 999px;
    padding: 0 108px 0 18px;
    color: #78350f;
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-filter input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.page-filter button {
    position: absolute;
    right: 4px;
    top: 4px;
    height: 34px;
    min-width: 78px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #f59e0b;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-filter button:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link {
    color: #78350f;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #f59e0b;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #78350f;
    font-size: 26px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-search {
    position: relative;
    margin-bottom: 14px;
}

.mobile-nav {
    display: grid;
    gap: 10px;
}

.mobile-link {
    color: #78350f;
    font-weight: 700;
    padding: 10px 0;
    border-bottom: 1px solid rgba(251, 191, 36, 0.38);
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #111827;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.52) 46%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 74px;
    max-width: 820px;
    color: #ffffff;
}

.hero-kicker,
.section-title span,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: #f59e0b;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 14px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.36);
}

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

.hero-meta span,
.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 16px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 800;
}

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

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

.primary-btn {
    color: #ffffff;
    background: #f59e0b;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
}

.primary-btn:hover {
    background: #d97706;
    transform: translateY(-2px) scale(1.02);
}

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

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
    transform: translateY(-50%);
}

.hero-next {
    right: 22px;
    transform: translateY(-50%);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 5;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

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

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

.section {
    padding: 58px 0;
}

.intro-section {
    padding-bottom: 18px;
}

.section-title.centered {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.section-title h2,
.section-heading h2,
.page-hero h1 {
    margin: 14px 0 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.section-title p,
.page-hero p {
    margin: 16px auto 0;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.8;
}

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

.section-heading h2 {
    font-size: clamp(28px, 3.5vw, 38px);
}

.section-more {
    color: #92400e;
    background: #fef3c7;
}

.section-more:hover {
    color: #ffffff;
    background: #f59e0b;
    transform: translateY(-2px);
}

.section-heading.light h2,
.section-heading.light span,
.section-more.light {
    color: #ffffff;
}

.section-more.light {
    background: rgba(255, 255, 255, 0.16);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(146, 64, 14, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(146, 64, 14, 0.18);
}

.poster-link,
.poster-wrap {
    display: block;
}

.poster-wrap {
    position: relative;
    height: 255px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.poster-large {
    height: 300px;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .poster-wrap img {
    transform: scale(1.1);
}

.poster-shade {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-badge {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #d97706;
    background: rgba(255, 255, 255, 0.92);
    font-size: 23px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: #f59e0b;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(146, 64, 14, 0.2);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: #d97706;
}

.card-body p {
    min-height: 50px;
    margin: 0 0 14px;
    color: #6b7280;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-bottom: 12px;
    color: #78716c;
    font-size: 13px;
}

.card-meta span + span::before {
    content: "·";
    margin-right: 10px;
    color: #d6d3d1;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
}

.ranking-block {
    padding: 30px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #3f2c12 48%, #78350f);
    box-shadow: 0 22px 54px rgba(17, 24, 39, 0.22);
}

.category-block {
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 46px rgba(146, 64, 14, 0.1);
}

.compact-list,
.latest-list {
    display: grid;
    gap: 14px;
}

.compact-card,
.latest-item {
    display: grid;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.compact-card {
    grid-template-columns: auto 74px 1fr;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.compact-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.compact-card img,
.latest-item img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-num,
.latest-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: #f59e0b;
    font-weight: 900;
}

.compact-card strong,
.latest-item strong {
    display: block;
    color: inherit;
    font-size: 16px;
    line-height: 1.35;
}

.compact-card em,
.latest-item em,
.latest-item small,
.category-card em {
    display: block;
    margin-top: 6px;
    color: #9ca3af;
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
}

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

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

.category-card {
    position: relative;
    min-height: 176px;
    display: flex;
    align-items: end;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 16px 40px rgba(146, 64, 14, 0.12);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(146, 64, 14, 0.18);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.55s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

.category-card span {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #ffffff;
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 23px;
}

.category-card em {
    color: #f3f4f6;
}

.latest-item {
    grid-template-columns: 96px auto 1fr;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.1);
}

.latest-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(146, 64, 14, 0.16);
}

.latest-item img {
    width: 96px;
    height: 118px;
}

.latest-content small {
    color: #6b7280;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    padding: 72px 0 64px;
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.28), transparent 34%), linear-gradient(135deg, #fff7ed, #fffbeb);
}

.dark-hero {
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.38), transparent 34%), linear-gradient(135deg, #111827, #451a03);
}

.dark-hero h1,
.dark-hero p {
    color: #ffffff;
}

.category-hero {
    background: radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.25), transparent 34%), linear-gradient(135deg, #fff7ed, #ffffff);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
}

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

.page-filter {
    position: relative;
    max-width: 560px;
    margin-top: 28px;
}

.page-filter input {
    height: 50px;
}

.page-filter button {
    height: 42px;
    min-width: 92px;
}

.search-form button {
    min-width: 92px;
}

.detail-hero {
    padding: 58px 0;
    color: #ffffff;
    background: radial-gradient(circle at 24% 16%, rgba(245, 158, 11, 0.32), transparent 30%), linear-gradient(135deg, #111827, #3f2c12 58%, #78350f);
}

.detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

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

.detail-info h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.detail-info p {
    max-width: 850px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.75;
}

.detail-tags {
    margin-top: 18px;
}

.player-section {
    padding-bottom: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #050505;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.28));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-pulse {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #d97706;
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
    max-width: 80%;
    font-size: clamp(22px, 4vw, 40px);
    line-height: 1.22;
}

.player-overlay em {
    color: #fef3c7;
    font-style: normal;
    font-weight: 800;
}

.detail-content {
    padding-top: 28px;
}

.content-card {
    padding: 34px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(146, 64, 14, 0.1);
}

.content-card h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 26px;
}

.content-card h2:not(:first-child) {
    margin-top: 30px;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.wide-tags {
    margin-top: 8px;
}

.ranking-page {
    padding-top: 42px;
}

.site-footer {
    margin-top: 58px;
    color: #fef3c7;
    background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 30px;
}

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

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fde68a;
    font-size: 18px;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
    color: #fed7aa;
    line-height: 1.75;
}

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

.footer-grid li + li {
    margin-top: 8px;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(254, 243, 199, 0.2);
    font-size: 14px;
}

.hidden-card {
    display: none;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 40px;
    border-radius: 22px;
    color: #92400e;
    background: #fef3c7;
    text-align: center;
    font-weight: 800;
}

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

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

    .header-search {
        max-width: none;
    }

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

    .split-section,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .header-search {
        display: none;
    }

    .hero-slider {
        min-height: 620px;
    }

    .hero-content {
        left: 24px;
        right: 24px;
        bottom: 72px;
    }

    .hero-arrow {
        display: none;
    }

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

    .split-section,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 260px;
    }

    .latest-item {
        grid-template-columns: 80px 1fr;
    }

    .latest-item img {
        width: 80px;
        height: 104px;
    }

    .latest-rank {
        display: none;
    }
}

@media (max-width: 560px) {
    .container,
    .header-inner,
    .mobile-panel,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-slider {
        height: 74vh;
        min-height: 560px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-actions {
        gap: 10px;
    }

    .primary-btn,
    .ghost-btn,
    .section-more {
        min-height: 40px;
        padding: 0 16px;
    }

    .section {
        padding: 38px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .poster-wrap,
    .poster-large {
        height: 360px;
    }

    .ranking-block,
    .category-block,
    .content-card {
        padding: 22px;
        border-radius: 22px;
    }

    .page-hero,
    .detail-hero {
        padding: 46px 0;
    }

    .detail-poster img {
        height: 340px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
