* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    color: #111827;
    background: #f9fafb;
    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,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #f97316;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.brand-text {
    color: transparent;
    background: linear-gradient(90deg, #f97316, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
}

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

.nav-link {
    transition: color 0.2s ease;
}

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

.dropdown {
    position: relative;
}

.dropdown-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 20px 0;
    color: #374151;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 6px);
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 6px;
    min-width: 300px;
    padding: 12px;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

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

.dropdown-menu a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #4b5563;
    font-size: 14px;
}

.dropdown-menu a:hover {
    color: #f97316;
    background: #fff7ed;
}

.header-search {
    position: relative;
    width: min(300px, 28vw);
}

.header-search input {
    width: 100%;
    height: 42px;
    padding: 0 44px 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    outline: 0;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.12);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: #374151;
    background: #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
}

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

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

.mobile-panel .container {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 16px;
}

.mobile-panel a {
    padding: 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
}

.mobile-panel a:hover {
    color: #f97316;
    background: #fff7ed;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14), transparent 24%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18));
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.28;
}

.hero-stage {
    position: relative;
    z-index: 1;
    min-height: 640px;
}

.hero-slide {
    display: none;
    align-items: center;
    min-height: 640px;
    padding: 72px 0;
}

.hero-slide.active {
    display: grid;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 46px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 8px 14px;
    margin-bottom: 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-lead {
    max-width: 720px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #f97316;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.btn-primary:hover {
    background: #fff7ed;
}

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

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

.hero-poster-wrap {
    position: relative;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.32);
    backdrop-filter: blur(14px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transform: scale(1.01);
}

.hero-poster-caption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 16px;
    border-radius: 20px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(14px);
}

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

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

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

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

.section {
    padding: 64px 0;
}

.section-tight {
    padding: 42px 0;
}

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

.section-title {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: #111827;
}

.section-desc {
    margin: 0;
    color: #6b7280;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f97316;
    font-weight: 900;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
    transform: translateY(-6px);
}

.movie-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

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

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

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

.cover-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #ffffff;
    background: #f97316;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #c2410c;
    background: #ffedd5;
}

.badge-muted {
    color: #4b5563;
    background: #f3f4f6;
}

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

.movie-card:hover .movie-title {
    color: #f97316;
}

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

.movie-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: #6b7280;
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.22);
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #ef4444, #ec4899);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #fb923c, #f43f5e);
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -34px;
    width: 120px;
    height: 120px;
    border: 24px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.category-tile h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 950;
}

.category-tile p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

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

.feature-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 260px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.feature-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.feature-body {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.feature-body h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 950;
}

.feature-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    color: #6b7280;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 72px 96px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.rank-num {
    color: #f97316;
    font-size: 24px;
    font-weight: 950;
}

.rank-row img {
    width: 96px;
    height: 68px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info h3 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.page-hero {
    padding: 72px 0 48px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444 55%, #ec4899);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

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

.catalog-tools {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(130px, 0.5fr));
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.catalog-tools input,
.catalog-tools select,
.search-panel input,
.search-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    outline: 0;
    background: #ffffff;
}

.catalog-tools input:focus,
.catalog-tools select:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.12);
}

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

.detail-page {
    background: #f9fafb;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 28px 0 18px;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 34px;
    margin-bottom: 42px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

.detail-info h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-lead {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 19px;
}

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

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.content-card {
    margin-bottom: 30px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
}

.content-card h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 28px;
    font-weight: 950;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    background: #020617;
    border-radius: 26px;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
    cursor: pointer;
}

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

.play-button-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 999px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
    font-size: 18px;
    font-weight: 950;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.site-footer {
    margin-top: 72px;
    color: #e5e7eb;
    background: #111827;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 30px;
    padding: 42px 0;
}

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
}

.footer-inner p {
    margin: 0;
    color: #cbd5e1;
}

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

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

.footer-bottom {
    padding: 18px 0;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 14px;
}

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

    .mobile-toggle {
        display: grid;
        place-items: center;
    }

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

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

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

    .hero-poster-wrap {
        max-width: 420px;
    }
}

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

    .brand {
        font-size: 20px;
    }

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

    .hero-slide {
        padding: 54px 0 74px;
    }

    .section {
        padding: 44px 0;
    }

    .section-head {
        display: grid;
    }

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

    .feature-card {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 52px 78px 1fr;
    }

    .rank-row .btn {
        grid-column: 2 / -1;
        width: max-content;
    }

    .catalog-tools,
    .search-panel {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 520px) {
    .movie-grid {
        gap: 16px;
    }

    .rank-row {
        grid-template-columns: 1fr;
    }

    .rank-row img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}
