* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #0f172a;
    background: #f8fafc;
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

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

button,
input {
    font: inherit;
}

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

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
}

.brand-mark,
.footer-brand span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626, #ea580c);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.brand-text strong,
.brand-text em {
    display: block;
}

.brand-text strong {
    font-size: 20px;
    line-height: 1.1;
}

.brand-text em {
    margin-top: 3px;
    font-style: normal;
    font-size: 12px;
    color: #64748b;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
    color: #475569;
}

.nav-links a:hover,
.mobile-menu a:hover {
    color: #dc2626;
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
}

.top-search input {
    width: 260px;
    border: 0;
    outline: none;
    padding: 10px 12px 10px 16px;
    background: transparent;
}

.top-search button,
.hero-search button,
.search-page-form button {
    border: 0;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc2626, #ea580c);
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.22);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: #fee2e2;
    color: #dc2626;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
}

.mobile-menu {
    display: none;
    padding: 0 24px 18px;
    background: #fff;
}

.mobile-menu.is-open {
    display: grid;
    gap: 8px;
}

.mobile-menu a {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    color: #475569;
    font-weight: 700;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(234, 88, 12, 0.5), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.26) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 48px));
    max-width: 1280px;
    margin: 0 auto;
    padding: 122px 0 210px;
}

.eyebrow,
.section-title span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-content h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.hero-content p {
    width: min(680px, 100%);
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: clamp(17px, 2.4vw, 23px);
}

.hero-tags,
.tag-row,
.filter-chips,
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.filter-chip,
.search-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.channel-more {
    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 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #ea580c);
    box-shadow: 0 18px 34px rgba(220, 38, 38, 0.26);
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.primary-btn:hover,
.ghost-btn:hover,
.channel-more:hover,
.movie-card:hover {
    transform: translateY(-4px);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
}

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

.hero-search {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 46px;
    width: min(860px, calc(100% - 48px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
}

.hero-search input,
.search-page-form input,
.catalog-filter {
    flex: 1;
    min-width: 0;
    border: 1px solid #e2e8f0;
    outline: none;
    border-radius: 999px;
    padding: 14px 18px;
    background: #fff;
}

.channel-nav {
    width: min(1180px, calc(100% - 48px));
    margin: -28px auto 20px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.channel-nav a {
    padding: 18px 16px;
    border-radius: 20px;
    text-align: center;
    color: #0f172a;
    background: #fff;
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.channel-nav a:hover {
    color: #dc2626;
}

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

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

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

.section-title span,
.page-hero span {
    color: #dc2626;
    background: #fee2e2;
    border-color: #fecaca;
}

.section-title h2,
.page-hero h1 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-title a {
    color: #dc2626;
    font-weight: 900;
}

.compact-title h2 {
    font-size: clamp(24px, 3vw, 34px);
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.15);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 48%);
    opacity: 0.86;
}

.play-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: #fff;
    background: rgba(220, 38, 38, 0.92);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 900;
}

.rank-mark {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.26);
}

.movie-info {
    padding: 18px;
}

.meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 900;
}

.movie-info h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.28;
}

.movie-info h3 a:hover {
    color: #dc2626;
}

.movie-info p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
}

.movie-card-small .movie-info h3 {
    font-size: 16px;
}

.movie-card-small .movie-info p {
    font-size: 13px;
}

.category-strip {
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, #fff, #fff7ed);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 26px;
}

.page-shell {
    padding: 54px 0 74px;
}

.page-hero {
    padding: 62px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.55), transparent 30%),
        linear-gradient(135deg, #7f1d1d, #0f172a 54%, #1e293b);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    margin-bottom: 36px;
}

.page-hero h1 {
    color: #fff;
}

.page-hero p {
    width: min(780px, 100%);
    color: #e2e8f0;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: #fed7aa;
    font-weight: 800;
}

.breadcrumb b {
    color: rgba(255, 255, 255, 0.42);
}

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

.channel-card {
    padding: 26px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.channel-head {
    display: flex;
    gap: 16px;
}

.channel-head > span {
    flex: 0 0 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, #dc2626, #ea580c);
}

.channel-head h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.channel-head p {
    margin: 0;
    color: #64748b;
}

.channel-samples {
    display: grid;
    gap: 9px;
    margin: 22px 0;
}

.channel-samples a {
    color: #475569;
    font-weight: 700;
}

.channel-samples a:hover {
    color: #dc2626;
}

.channel-more {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #ea580c);
}

.filter-panel {
    margin: 0 0 28px;
    padding: 20px;
    display: grid;
    gap: 16px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-chip,
.search-tag {
    border: 0;
    cursor: pointer;
}

.filter-chip:hover,
.search-tag:hover {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #ea580c);
}

.search-page-form {
    display: flex;
    gap: 12px;
    width: min(760px, 100%);
    margin-top: 24px;
}

.search-tags {
    margin-bottom: 32px;
}

.search-results-wrap {
    min-height: 240px;
}

.empty-state {
    padding: 42px;
    border-radius: 26px;
    text-align: center;
    color: #64748b;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.detail-shell {
    width: 100%;
    margin: 0;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.34;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(1.2);
    transform: scale(1.08);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.42), transparent 30%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

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

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-copy .lead {
    width: min(820px, 100%);
    color: #e2e8f0;
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 800;
}

.detail-tags {
    margin-bottom: 28px;
}

.watch-section,
.detail-content,
.related-section {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 54px 0 0;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.34));
    cursor: pointer;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc2626, #ea580c);
    box-shadow: 0 18px 42px rgba(220, 38, 38, 0.34);
    font-size: 34px;
    padding-left: 5px;
}

.player-cover strong {
    font-size: 24px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
}

.detail-content article,
.detail-content aside {
    padding: 32px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-content p {
    margin: 0 0 28px;
    color: #334155;
    font-size: 17px;
}

.detail-content dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.detail-content dl div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-content dt {
    color: #94a3b8;
    font-weight: 900;
}

.detail-content dd {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
}

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

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

.related-card {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.related-thumb {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
}

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

.related-card span {
    color: #dc2626;
    font-size: 12px;
    font-weight: 900;
}

.related-card h3 {
    margin: 6px 0;
    font-size: 18px;
}

.related-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e1b4b 52%, #7f1d1d);
}

.footer-grid {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 42px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 22px;
}

.site-footer p {
    max-width: 560px;
    color: #cbd5e1;
}

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

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

    .detail-inner,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .brand {
        min-width: 0;
    }

    .brand-text em {
        display: none;
    }

    .hero-slider {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 92px;
    }

    .hero-search,
    .search-page-form {
        flex-direction: column;
        border-radius: 24px;
    }

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

    .movie-grid,
    .featured-grid,
    .mini-grid,
    .ranking-grid,
    .catalog-grid,
    .channel-grid,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .page-shell,
    .watch-section,
    .detail-content,
    .related-section,
    .detail-inner,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 32px, 1280px);
    }

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

    .detail-inner {
        padding: 42px 0;
    }

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

@media (max-width: 520px) {
    .nav-wrap {
        padding: 14px 16px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .hero-slider {
        min-height: 680px;
    }

    .hero-content {
        width: calc(100% - 32px);
        padding-bottom: 210px;
    }

    .hero-control {
        bottom: 150px;
    }

    .hero-search {
        bottom: 24px;
        width: calc(100% - 32px);
    }

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

    .movie-grid,
    .catalog-grid {
        gap: 16px;
    }

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

    .player-cover strong {
        font-size: 18px;
        padding: 0 16px;
        text-align: center;
    }
}
