:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #ef4444;
    --yellow: #fde047;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.30);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    font-size: 22px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--orange-dark), #dc2626);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    color: var(--gray-700);
    flex: 1;
}

.desktop-nav a {
    transition: color 0.2s ease;
    font-weight: 600;
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav .nav-current {
    color: var(--orange-dark);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    padding: 10px 16px;
    outline: none;
    color: var(--gray-900);
    background: var(--white);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.text-link,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button,
.filter-panel button {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.header-search button,
.mobile-search button,
.filter-panel button {
    padding: 10px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.filter-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--gray-700);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--gray-200);
    padding: 16px;
    background: var(--white);
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mobile-panel nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--gray-700);
    background: var(--gray-50);
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    display: none;
    min-height: 620px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide.is-active {
    display: block;
    animation: heroFade 0.55s ease;
}

.hero-slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(0deg, var(--gray-50), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 48px;
    color: var(--white);
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-copy h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    margin: 0 0 24px;
    letter-spacing: -0.04em;
}

.hero-copy h1 strong {
    color: var(--yellow);
    font-style: normal;
}

.hero-copy p {
    max-width: 680px;
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 34px;
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
}

.secondary-button {
    color: #fed7aa;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.secondary-button:hover {
    color: var(--gray-900);
    background: var(--yellow);
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

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

.hero-poster span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.66);
    font-weight: 800;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    transition: width 0.25s ease, background 0.25s ease;
}

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

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

.main-section.compact {
    padding: 42px 0;
}

.featured-overlap {
    margin-top: -84px;
    position: relative;
    z-index: 5;
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    color: var(--gray-900);
}

.section-heading p {
    margin: 10px 0 0;
    max-width: 760px;
    line-height: 1.7;
    color: var(--gray-600);
}

.section-link,
.text-link {
    color: var(--orange-dark);
    font-weight: 800;
}

.section-link:hover,
.text-link:hover {
    color: #c2410c;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.poster-link {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--gray-200);
}

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

.movie-card-default .poster-link img,
.movie-card-compact .poster-link img {
    aspect-ratio: 3 / 4;
}

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

.card-category,
.card-duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.card-category {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.card-duration {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    background: rgba(17, 24, 39, 0.82);
}

.card-body {
    padding: 18px;
}

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

.movie-card-large .card-body h3 {
    font-size: 22px;
}

.card-body h3 a:hover {
    color: var(--orange-dark);
}

.card-body p {
    margin: 0 0 14px;
    color: var(--gray-600);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-tags span,
.detail-tags span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.card-meta,
.horizontal-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.channel-strip {
    background: var(--white);
    padding: 64px 0;
    box-shadow: inset 0 1px 0 var(--gray-200), inset 0 -1px 0 var(--gray-200);
}

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

.channel-tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 24px;
    min-height: 190px;
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-900), var(--orange-dark));
    box-shadow: var(--shadow-card);
}

.channel-tile.from-red {
    background: linear-gradient(135deg, #7f1d1d, #ef4444);
}

.channel-tile.from-blue {
    background: linear-gradient(135deg, #1e3a8a, #06b6d4);
}

.channel-tile.from-green {
    background: linear-gradient(135deg, #14532d, #22c55e);
}

.channel-tile.from-purple {
    background: linear-gradient(135deg, #581c87, #a855f7);
}

.channel-tile.from-pink {
    background: linear-gradient(135deg, #831843, #ec4899);
}

.channel-tile.from-cyan {
    background: linear-gradient(135deg, #164e63, #22d3ee);
}

.channel-tile.from-amber {
    background: linear-gradient(135deg, #78350f, #f59e0b);
}

.channel-tile h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.channel-tile p {
    position: relative;
    z-index: 2;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.channel-tile span {
    font-weight: 800;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.horizontal-poster {
    overflow: hidden;
    border-radius: 14px;
}

.horizontal-poster img {
    width: 132px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.horizontal-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.horizontal-title-row h3 {
    margin: 0;
    font-size: 19px;
}

.horizontal-body p {
    margin: 0 0 10px;
    color: var(--gray-600);
    line-height: 1.65;
}

.horizontal-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
}

.page-hero {
    padding: 70px 0 46px;
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-900), #9a3412 62%, #dc2626);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fed7aa;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--yellow);
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    margin: 0 0 28px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.filter-panel input {
    flex: 1;
    min-width: 180px;
}

.filter-panel select {
    min-width: 150px;
}

.no-results {
    display: none;
    padding: 36px;
    border-radius: var(--radius-xl);
    color: var(--gray-600);
    text-align: center;
    background: var(--white);
}

.no-results.is-visible {
    display: block;
}

.detail-hero {
    padding: 42px 0;
    color: var(--white);
    background-size: cover;
    background-position: center;
    position: relative;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(127, 29, 29, 0.76), rgba(17, 24, 39, 0.46));
}

.detail-hero .container {
    position: relative;
    z-index: 2;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

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

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

.detail-copy .lead {
    margin: 0 0 18px;
    font-size: 19px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.detail-meta {
    margin-bottom: 18px;
    color: #fde68a;
}

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

.player-section {
    padding: 54px 0 34px;
    background: var(--gray-900);
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

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

.player-action {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.34), rgba(0, 0, 0, 0.45));
}

.player-action span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
    font-size: 18px;
    font-weight: 900;
}

.player-box.is-playing .player-action {
    display: none;
}

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

.article-panel,
.side-panel {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.article-panel {
    padding: 30px;
}

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

.article-panel p {
    margin: 0 0 24px;
    color: var(--gray-700);
    line-height: 1.9;
    font-size: 16px;
}

.side-panel {
    padding: 22px;
}

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

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

.side-item img {
    width: 76px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.side-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.side-item p {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
}

.site-footer {
    color: var(--gray-300);
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding: 52px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 14px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.site-footer p,
.site-footer li {
    color: var(--gray-300);
    line-height: 1.75;
    font-size: 14px;
}

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

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

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: var(--gray-500);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: var(--shadow-card);
}

.back-top.is-visible {
    display: block;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

    .header-search {
        margin-left: auto;
    }

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

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

    .hero-content,
    .detail-layout,
    .content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

    .horizontal-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .horizontal-card .text-link {
        grid-column: 2;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

    .brand-text {
        max-width: 210px;
        font-size: 17px;
        white-space: normal;
    }

    .hero-carousel,
    .hero-slide,
    .hero-content {
        min-height: 560px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-copy p {
        font-size: 17px;
    }

    .grid-3,
    .grid-4,
    .grid-5,
    .channel-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .horizontal-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
    }

    .horizontal-poster img {
        width: 92px;
        aspect-ratio: 3 / 4;
    }

    .detail-layout {
        gap: 22px;
    }

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

    .article-panel,
    .side-panel {
        padding: 20px;
    }
}
