html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #111827;
    background: #f8fafc;
}

body,
button,
input {
    font: inherit;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 74px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.34);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-right: auto;
    color: #374151;
    font-weight: 700;
}

.desktop-nav a,
.nav-dropdown > a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > a {
    color: #d97706;
}

.nav-dropdown {
    position: relative;
    padding: 26px 0;
}

.dropdown-panel {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 188px;
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(229, 231, 235, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.18s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 9px 12px;
    border-radius: 12px;
    color: #4b5563;
}

.dropdown-panel a:hover {
    background: #fffbeb;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px 5px 4px 14px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-search input,
.hero-search input,
.section-filter,
.mobile-panel input {
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
}

.header-search input {
    width: 210px;
}

.header-search button,
.hero-search button,
.mobile-panel button {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    color: #ffffff;
    font-weight: 800;
    background: #f59e0b;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: #111827;
}

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

.mobile-panel.open {
    display: grid;
    gap: 14px;
}

.mobile-panel a {
    font-weight: 800;
    color: #374151;
}

.mobile-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

.hero-carousel {
    background: #111827;
}

.hero-stage {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    top: 50%;
    width: min(660px, calc(100% - 48px));
    transform: translateY(-50%);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: #d97706;
}

.hero-content h1 {
    margin: 0 0 10px;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.5vw, 52px);
    line-height: 1.08;
    font-weight: 900;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-meta span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: all 0.2s ease;
}

.primary-btn {
    padding: 13px 26px;
    color: #ffffff;
    background: #f59e0b;
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

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

.ghost-btn {
    padding: 13px 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.26);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.quick-panel,
.content-section,
.category-strip,
.page-main,
.detail-content,
.related-section {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.quick-panel {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    padding-top: 42px;
}

.quick-card,
.category-overview-card,
.side-panel,
.detail-cover-card,
.detail-article {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.quick-card {
    padding: 30px;
}

.quick-card h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.quick-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.8;
}

.search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: center;
}

.ranking-card {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.1);
}

.hero-search input {
    min-width: 0;
    padding-left: 16px;
}

.hero-search button {
    padding: 14px 22px;
}

.text-link {
    margin-top: 20px;
    color: #d97706;
}

.content-section,
.category-strip {
    padding-top: 72px;
    padding-bottom: 20px;
}

.content-section.no-top {
    padding-top: 28px;
}

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

.section-heading h2,
.single-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-heading a {
    color: #d97706;
    font-weight: 900;
}

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

.home-grid .movie-card-featured {
    grid-column: span 2;
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #111827);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
    opacity: 0.8;
}

.play-dot {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: all 0.22s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-category,
.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.card-category {
    right: 12px;
    padding: 6px 10px;
    background: #f59e0b;
}

.rank-badge {
    left: 12px;
    min-width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: rgba(17, 24, 39, 0.76);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
}

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

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

.card-meta {
    justify-content: space-between;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span,
.detail-tags a {
    padding: 5px 9px;
    border-radius: 999px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    background: #fffbeb;
}

.warm-section {
    padding-bottom: 72px;
}

.category-strip {
    max-width: none;
    padding-top: 70px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.category-strip > .section-heading,
.category-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.category-tile {
    min-height: 170px;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    transition: all 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    background: rgba(245, 158, 11, 0.28);
}

.category-tile strong {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 950;
}

.category-tile span {
    color: #d1d5db;
    line-height: 1.65;
}

.page-main {
    padding-top: 44px;
    padding-bottom: 72px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 56px;
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.45), transparent 28%), linear-gradient(135deg, #111827, #374151);
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.crumbs a:hover {
    color: #fbbf24;
}

.category-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.category-overview-card a {
    display: block;
    min-height: 180px;
    padding: 30px;
}

.category-overview-card span {
    color: #d97706;
    font-weight: 950;
}

.category-overview-card h2 {
    margin: 8px 0 12px;
    font-size: 28px;
    font-weight: 950;
}

.category-overview-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.8;
}

.toolbar-section {
    margin: 26px 0 0;
}

.section-filter {
    width: 100%;
    padding: 18px 22px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

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

.side-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.side-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 950;
}

.compact-link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.compact-link img {
    width: 72px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: #111827;
}

.compact-link strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.compact-link small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    line-height: 1.4;
}

.detail-main {
    background: #f8fafc;
}

.detail-player-section {
    padding: 24px 24px 0;
    background: linear-gradient(180deg, #111827, #1f2937);
}

.dark-crumbs {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.player-wrap {
    position: relative;
    max-width: 1280px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.52));
    cursor: pointer;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    padding-left: 6px;
    color: #ffffff;
    font-size: 34px;
    background: rgba(245, 158, 11, 0.94);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.4);
}

.player-start strong {
    font-size: 22px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.player-start.hidden {
    display: none;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.detail-cover-card {
    overflow: hidden;
    padding: 18px;
}

.detail-cover-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    object-fit: cover;
    background: #111827;
}

.full-btn {
    width: 100%;
    margin-top: 16px;
}

.detail-article {
    padding: 34px;
}

.detail-article h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.lead-text {
    color: #4b5563;
    font-size: 19px;
    line-height: 1.8;
}

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

.detail-meta-grid span {
    padding: 16px;
    border-radius: 18px;
    background: #f9fafb;
}

.detail-meta-grid b {
    display: block;
    margin-bottom: 6px;
    color: #9ca3af;
    font-size: 12px;
}

.detail-article h2 {
    margin: 34px 0 12px;
    font-size: 26px;
    font-weight: 950;
}

.detail-article p {
    color: #374151;
    line-height: 1.95;
}

.related-section {
    padding-bottom: 80px;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding: 52px 24px;
}

.footer-brand {
    color: #ffffff;
}

.footer-inner p {
    max-width: 560px;
    color: #d1d5db;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    justify-content: flex-end;
    align-content: start;
}

.footer-links a {
    color: #d1d5db;
    font-weight: 700;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 34px;
    color: #9ca3af;
    text-align: center;
}

[hidden] {
    display: none !important;
}

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

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

    .ranking-layout,
    .quick-panel,
    .search-card {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

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

    .header-inner {
        height: 66px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .hero-stage {
        height: 78vh;
        min-height: 580px;
    }

    .hero-content {
        left: 24px;
        top: 52%;
    }

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

    .hero-arrow {
        display: none;
    }

    .quick-panel,
    .content-section,
    .category-strip,
    .page-main,
    .detail-content,
    .related-section {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .home-grid .movie-card-featured {
        grid-column: span 1;
    }

    .page-hero {
        padding: 34px 24px;
        border-radius: 26px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-cover-card {
        max-width: 420px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

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

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

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-actions,
    .hero-search,
    .section-heading,
    .mobile-panel form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .hero-search {
        border-radius: 22px;
    }

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

    .quick-card,
    .detail-article {
        padding: 22px;
    }

    .detail-player-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .player-wrap {
        border-radius: 20px;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }
}
