:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(56, 189, 248, 0.18);
    --line-strong: rgba(34, 211, 238, 0.32);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --pink: #ec4899;
    --green: #22c55e;
    --amber: #f59e0b;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.20), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
}

.nav-shell {
    width: min(1280px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #38bdf8, #2563eb 52%, #22d3ee);
    color: white;
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.28);
}

.brand-text {
    font-size: 1.24rem;
    background: linear-gradient(90deg, #60a5fa, #22d3ee, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.dropdown-trigger {
    color: #cbd5e1;
    font-weight: 700;
    border: 0;
    background: transparent;
    padding: 10px 2px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.dropdown-trigger:hover {
    color: var(--cyan);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

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

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #cbd5e1;
}

.dropdown-panel a:hover {
    color: var(--cyan);
    background: rgba(59, 130, 246, 0.16);
}

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

.nav-search input,
.mobile-search input,
.search-page-form input {
    width: 250px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(15, 23, 42, 0.68);
    color: var(--text);
    border-radius: 14px;
    outline: none;
    padding: 11px 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus {
    border-color: rgba(34, 211, 238, 0.68);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.nav-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    color: #082f49;
    background: linear-gradient(135deg, #67e8f9, #38bdf8);
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 900;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #cbd5e1;
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-nav-link {
    padding: 12px 14px;
    color: #cbd5e1;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.52);
}

.mobile-nav-link.is-active {
    color: var(--cyan);
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #020617;
}

.hero-track {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 56px;
    opacity: 0;
    visibility: hidden;
    padding: 80px max(24px, calc((100vw - 1280px) / 2 + 24px));
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.20;
    transform: scale(1.06);
    filter: blur(4px);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 48%, rgba(2, 6, 23, 0.64) 100%),
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.22), transparent 28rem);
}

.hero-content,
.hero-cover {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-side h1 {
    margin: 18px 0 18px;
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    max-width: 980px;
}

.hero-content p {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.9;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 950;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #082f49;
    background: linear-gradient(135deg, #67e8f9, #38bdf8 48%, #60a5fa);
    box-shadow: 0 18px 48px rgba(34, 211, 238, 0.26);
}

.primary-button.small {
    min-height: 40px;
    padding: 0 18px;
}

.ghost-button {
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.hero-cover {
    justify-self: end;
    width: min(440px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.42), rgba(59, 130, 246, 0.12), rgba(236, 72, 153, 0.34));
    box-shadow: 0 44px 100px rgba(2, 6, 23, 0.72);
    transform: rotate(2deg);
}

.hero-cover img,
.detail-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    background: linear-gradient(135deg, #172554, #0f172a);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.48);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(2, 6, 23, 0.76);
    transform: translateY(-2px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--cyan);
}

.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

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

.section-heading span {
    display: block;
    margin-bottom: 6px;
    color: #67e8f9;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

.compact-heading {
    align-items: center;
    margin-bottom: 20px;
}

.compact-heading h2 {
    font-size: 1.6rem;
}

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

.channel-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.channel-card {
    min-height: 245px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.channel-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 32px 90px rgba(2, 6, 23, 0.62);
}

.channel-blue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(8, 47, 73, 0.88));
}

.channel-purple {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.92), rgba(49, 46, 129, 0.88));
}

.channel-pink {
    background: linear-gradient(135deg, rgba(190, 24, 93, 0.92), rgba(88, 28, 135, 0.88));
}

.channel-green {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.92), rgba(20, 83, 45, 0.88));
}

.channel-icon {
    display: inline-flex;
    font-size: 2.4rem;
    line-height: 1;
}

.channel-card strong {
    display: block;
    margin-top: 18px;
    font-size: 1.42rem;
    font-weight: 950;
}

.channel-card em {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    line-height: 1.7;
}

.channel-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.channel-thumbs img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.4);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.66));
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
    transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-7px);
    box-shadow: 0 30px 74px rgba(2, 6, 23, 0.48);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #172554, #020617);
}

.movie-card:not(.compact-card) .poster-link {
    aspect-ratio: 3 / 4;
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.92));
}

.card-play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: white;
    background: rgba(34, 211, 238, 0.86);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.28);
}

.card-duration {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 5px 9px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.72);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 800;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 1.12rem;
    line-height: 1.35;
    font-weight: 950;
}

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

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

.two-column-section,
.listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.rank-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.62));
    box-shadow: var(--shadow);
}

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

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 36px 74px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: rgba(59, 130, 246, 0.12);
    transform: translateX(3px);
}

.rank-number {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #cbd5e1;
    background: #1e293b;
    font-weight: 950;
}

.rank-number.gold {
    color: white;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-number.silver {
    color: #111827;
    background: linear-gradient(135deg, #e5e7eb, #94a3b8);
}

.rank-number.bronze {
    color: white;
    background: linear-gradient(135deg, #d97706, #92400e);
}

.rank-item img {
    width: 74px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    background: #172554;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy strong {
    font-weight: 900;
}

.rank-copy small {
    margin-top: 5px;
    color: var(--muted);
}

.large-rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.genre-cloud,
.genre-card-grid {
    display: grid;
    gap: 14px;
}

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

.genre-cloud a,
.genre-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.genre-cloud a:hover,
.genre-card:hover {
    border-color: var(--line-strong);
    background: rgba(30, 64, 175, 0.22);
    transform: translateY(-2px);
}

.genre-cloud strong,
.genre-card strong {
    color: #67e8f9;
}

.page-hero,
.detail-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-top: 36px;
    padding: 58px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 12% 16%, rgba(34, 211, 238, 0.20), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.46));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.stacked-overview {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
    padding: 28px;
}

.overview-copy h2 {
    margin: 16px 0 10px;
    font-size: 2rem;
}

.overview-copy p {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.8;
}

.overview-copy strong {
    display: block;
    margin: 18px 0;
    font-size: 1.2rem;
}

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

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

.search-page-form {
    margin-top: 28px;
}

.search-page-form input {
    width: min(680px, 100%);
    min-height: 54px;
    font-size: 1.05rem;
}

.search-page-form button {
    min-height: 54px;
    padding: 0 24px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -10px 0 24px;
}

.filter-row button {
    color: #cbd5e1;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    padding: 9px 14px;
    cursor: pointer;
}

.filter-row button:hover {
    color: var(--cyan);
    border-color: var(--line-strong);
}

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

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

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line-strong);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.video-play-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.35));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-play-button span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    box-shadow: 0 22px 58px rgba(34, 211, 238, 0.36);
    font-size: 2rem;
    padding-left: 4px;
}

.video-frame.is-playing .video-play-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.player-meta-bar span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(15, 23, 42, 0.68);
    font-weight: 800;
}

.detail-side {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 0;
}

.detail-side-copy {
    padding: 24px;
}

.detail-side h1 {
    margin: 12px 0;
    font-size: 2rem;
}

.detail-side p {
    color: #cbd5e1;
    line-height: 1.8;
}

.meta-list {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
}

.meta-list div {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.meta-list dt {
    color: #67e8f9;
    font-weight: 900;
}

.meta-list dd {
    margin: 0;
    color: #dbeafe;
}

.detail-content {
    display: grid;
    gap: 22px;
}

.story-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
}

.story-card p {
    margin: 0;
    color: #d1d5db;
    line-height: 2;
    font-size: 1.04rem;
}

.detail-tags {
    display: grid;
    gap: 12px;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 640px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: #cbd5e1;
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--cyan);
}

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

    .hero-slide,
    .detail-grid,
    .listing-layout,
    .two-column-section,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .hero-cover {
        justify-self: start;
        width: min(320px, 78vw);
    }

    .channel-grid,
    .featured-grid,
    .catalog-grid,
    .overview-movies {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .sticky-panel {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .nav-shell {
        height: 66px;
    }

    .hero-carousel,
    .hero-track {
        min-height: 760px;
    }

    .hero-slide {
        min-height: 760px;
        align-content: start;
        padding-top: 54px;
        gap: 28px;
    }

    .hero-content h1 {
        font-size: clamp(2.6rem, 14vw, 4.5rem);
    }

    .hero-arrow {
        display: none;
    }

    .content-section {
        padding: 40px 0;
    }

    .channel-grid,
    .featured-grid,
    .latest-grid,
    .catalog-grid,
    .overview-movies,
    .genre-card-grid,
    .genre-cloud,
    .large-rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-grid {
        gap: 20px;
    }

    .detail-side {
        display: grid;
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .detail-poster {
        height: 100%;
    }

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

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

    .hero-carousel,
    .hero-track,
    .hero-slide {
        min-height: 700px;
    }

    .hero-slide {
        padding-inline: 16px;
    }

    .hero-cover {
        width: min(240px, 72vw);
        border-radius: 24px;
    }

    .channel-grid,
    .featured-grid,
    .latest-grid,
    .catalog-grid,
    .overview-movies,
    .genre-card-grid,
    .genre-cloud {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 32px 62px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-item img {
        width: 62px;
        height: 44px;
    }

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

    .search-page-form {
        align-items: stretch;
        flex-direction: column;
    }

    .video-play-button span {
        width: 68px;
        height: 68px;
    }
}
