:root {
    --brand: #d97706;
    --brand-dark: #b45309;
    --brand-soft: #fff7ed;
    --accent: #f97316;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --page: #f8fafc;
    --card: #ffffff;
    --dark: #0f172a;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 260px, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #d97706 0%, #f97316 100%);
    box-shadow: 0 12px 30px rgba(180, 83, 9, 0.26);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #f97316;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    font-size: 15px;
    white-space: nowrap;
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link.active::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    content: "";
    background: #ffffff;
    border-radius: 999px;
}

.nav-link-sub {
    display: inline-flex;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 10px 16px 18px;
    background: #b45309;
}

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

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-slider {
    position: relative;
    height: 580px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 18% 70%, rgba(245, 158, 11, 0.38), transparent 30%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.68) 44%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    min-height: 100%;
    padding: 110px 0 72px;
    color: #ffffff;
}

.hero-panel {
    max-width: 680px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    font-size: 14px;
    color: #fff7ed;
    background: rgba(217, 119, 6, 0.86);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.hero-panel h1,
.hero-panel h2 {
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-panel p {
    max-width: 620px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: clamp(16px, 2.2vw, 20px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706 0%, #f97316 100%);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.35);
}

.button.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    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-dot.active {
    width: 34px;
    background: #f59e0b;
}

.main-section {
    padding: 58px 0;
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
    max-width: 720px;
    color: var(--muted);
}

.section-heading::after {
    flex: 1;
    height: 3px;
    min-width: 48px;
    content: "";
    background: linear-gradient(90deg, #d97706, transparent);
    border-radius: 999px;
}

.section-more {
    flex: 0 0 auto;
    color: var(--brand-dark);
    font-weight: 700;
}

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

.category-tile {
    position: relative;
    min-height: 150px;
    padding: 22px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.26), transparent 28%),
        linear-gradient(135deg, #b45309, #f97316);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.toolbar input,
.toolbar select {
    min-height: 46px;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 14px;
    color: var(--text);
    background: #ffffff;
    font: inherit;
    outline: none;
}

.toolbar input:focus,
.toolbar select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

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

.movie-grid.dense-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card.hidden {
    display: none;
}

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

.card-link {
    display: block;
    height: 100%;
}

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

.movie-grid.dense-grid .card-cover {
    aspect-ratio: 3 / 4;
}

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

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

.card-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-year,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.56);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.card-year {
    left: 12px;
}

.rank-badge {
    right: 12px;
    background: linear-gradient(135deg, #d97706, #f97316);
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 18px;
}

.card-meta {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
}

.card-body h2,
.card-body h3 {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #92400e;
    background: #ffedd5;
    font-size: 12px;
}

.feature-band {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 50%, #ffedd5 100%);
}

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

.hot-item {
    display: grid;
    grid-template-columns: 155px 1fr;
    gap: 18px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease;
}

.hot-item:hover {
    transform: translateY(-3px);
}

.hot-cover {
    position: relative;
    min-height: 126px;
    overflow: hidden;
    background: #111827;
}

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

.hot-index {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #f97316);
    font-weight: 800;
}

.hot-body {
    padding: 16px 16px 16px 0;
}

.hot-body h2,
.hot-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.hot-body p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    padding: 74px 0 38px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.35), transparent 26%),
        linear-gradient(135deg, #0f172a 0%, #7c2d12 100%);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fde68a;
    font-size: 14px;
}

.detail-wrap {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #92400e;
    background: #ffedd5;
    font-weight: 700;
}

.detail-info p {
    margin: 0 0 20px;
    color: #374151;
    font-size: 17px;
}

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    width: 100%;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 42%, rgba(217, 119, 6, 0.34), transparent 30%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.2));
    cursor: pointer;
}

.play-overlay.hidden {
    display: none;
}

.play-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    min-height: 56px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #f97316);
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.4);
}

.content-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 25px;
}

.content-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.detail-stack {
    display: grid;
    gap: 24px;
}

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

.related-grid .card-body {
    padding: 14px;
}

.related-grid .card-body h2 {
    min-height: 42px;
    font-size: 16px;
}

.related-grid .card-body p {
    display: none;
}

.pagination-strip {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.pagination-strip a {
    flex: 1;
    padding: 16px;
    border-radius: 18px;
    background: #fff7ed;
    color: #92400e;
    font-weight: 700;
}

.empty-message {
    display: none;
    padding: 28px;
    border-radius: 20px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

.empty-message.show {
    display: block;
}

.site-footer {
    margin-top: 58px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
    padding: 44px 0;
}

.footer-brand {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.site-footer p,
.site-footer li {
    color: #9ca3af;
    font-size: 14px;
}

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

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: #f59e0b;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid #1f2937;
    color: #9ca3af;
    text-align: center;
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 12px;
    }

    .nav-link-sub {
        display: none;
    }

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

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

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

@media (max-width: 820px) {
    .layout {
        width: min(100% - 24px, 1200px);
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-slider {
        height: 520px;
    }

    .hero-content {
        padding: 96px 0 70px;
    }

    .hero-control {
        display: none;
    }

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

    .section-heading::after {
        width: 120px;
        flex: none;
    }

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

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

    .card-body {
        padding: 14px;
    }

    .card-body h2 {
        font-size: 16px;
        min-height: 44px;
    }

    .hot-list {
        grid-template-columns: 1fr;
    }

    .hot-item {
        grid-template-columns: 120px 1fr;
    }

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

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

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

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

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

    .hero-slider {
        height: 500px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .hot-item {
        grid-template-columns: 1fr;
    }

    .hot-cover {
        aspect-ratio: 16 / 9;
    }

    .pagination-strip {
        flex-direction: column;
    }
}
