:root {
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --cyan-600: #0891b2;
    --amber-500: #f59e0b;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
    --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--teal-700), var(--cyan-600));
    box-shadow: 0 10px 28px rgba(8, 145, 178, 0.25);
}

.nav-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark,
.footer-brand span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #0f766e;
    background: #fbbf24;
    border-radius: 999px;
    font-size: 16px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.03em;
}

.brand-text em {
    margin-top: 4px;
    font-size: 12px;
    color: #ccfbf1;
    font-style: normal;
}

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

.nav-links a {
    font-weight: 700;
    color: #ecfeff;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fde68a;
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    min-width: 290px;
}

.nav-search input {
    width: 100%;
    height: 38px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px 0 0 999px;
    padding: 0 14px;
    outline: none;
}

.nav-search input::placeholder {
    color: #ccfbf1;
}

.nav-search button,
.btn-primary {
    border: 0;
    color: #ffffff;
    background: var(--amber-500);
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
    height: 38px;
    padding: 0 18px;
    border-radius: 0 999px 999px 0;
}

.nav-search button:hover,
.btn-primary:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.menu-toggle {
    display: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    margin-left: auto;
    cursor: pointer;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transform: scale(1.02);
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 76px;
    position: relative;
    z-index: 2;
}

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

.badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.badges span,
.tag-row span,
.detail-tags span,
.quick-filter button {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badges span {
    padding: 8px 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.badges span:first-child {
    background: var(--amber-500);
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-meta {
    margin: 0 0 12px;
    color: #d1d5db;
    font-size: 18px;
    font-weight: 700;
}

.hero-desc {
    max-width: 640px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: 17px;
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
}

.btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

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

.hero-dots button {
    width: 34px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #fbbf24;
}

.section,
.page-head,
.detail-wrap,
.search-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 58px 0 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--teal-600);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-desc {
    max-width: 740px;
    margin: 8px 0 0;
    color: var(--gray-600);
}

.view-more {
    color: var(--teal-700);
    font-weight: 900;
    white-space: nowrap;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.78));
    opacity: 0.86;
}

.poster-region,
.poster-type,
.poster-meta,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-weight: 800;
}

.poster-region {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: var(--teal-600);
    border-radius: 999px;
    font-size: 12px;
}

.poster-type {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    background: var(--amber-500);
    border-radius: 9px;
    font-size: 12px;
}

.poster-meta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 12px;
}

.poster-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: auto;
    color: #ffffff;
    background: rgba(13, 148, 136, 0.92);
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: scale(1);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    min-height: 52px;
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--teal-700);
}

.card-body p {
    min-height: 44px;
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.7;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    color: #0f766e;
    background: #ccfbf1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.feature-card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: end;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow-soft);
}

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

.feature-card:hover img {
    transform: scale(1.07);
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.feature-info {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: #ffffff;
}

.feature-info h3 {
    margin: 12px 0 8px;
    font-size: 24px;
    line-height: 1.25;
}

.feature-info p {
    margin: 0;
    color: #d1d5db;
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    border-radius: 24px;
    padding: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-card strong {
    position: relative;
    z-index: 1;
    font-size: 28px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.88);
}

.category-icon {
    position: relative;
    z-index: 1;
    font-size: 38px;
}

.cat-blue {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.cat-teal {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.cat-amber {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.cat-purple {
    background: linear-gradient(135deg, #7c3aed, #c026d3);
}

.cat-rose {
    background: linear-gradient(135deg, #e11d48, #fb7185);
}

.cat-green {
    background: linear-gradient(135deg, #16a34a, #65a30d);
}

.cat-indigo {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.cat-cyan {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
}

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

.hot-list,
.side-panel,
.detail-card,
.filter-panel {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.hot-list {
    padding: 18px;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.hot-item:hover {
    background: #f0fdfa;
}

.hot-item img {
    width: 96px;
    height: 66px;
    object-fit: cover;
    border-radius: 12px;
}

.hot-item strong {
    display: block;
    line-height: 1.35;
}

.hot-item em {
    display: block;
    margin-top: 4px;
    color: var(--gray-600);
    font-size: 12px;
    font-style: normal;
}

.list-rank,
.rank-badge {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), #ef4444);
    border-radius: 9px;
    font-size: 13px;
}

.rank-badge {
    top: 54px;
    right: 12px;
}

.page-head {
    padding: 54px 0 36px;
}

.page-head .crumbs,
.detail-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #d1fae5;
    font-size: 14px;
    font-weight: 700;
}

.page-head h1 {
    margin: 14px 0 10px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.12;
}

.page-head p {
    max-width: 820px;
    margin: 0;
    color: #ecfeff;
}

.page-hero {
    background: linear-gradient(120deg, #0f766e, #0891b2);
}

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.filter-panel input {
    min-width: 240px;
    flex: 1;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0 15px;
    outline: none;
}

.quick-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-filter button {
    padding: 9px 13px;
    border: 0;
    color: #0f766e;
    background: #ccfbf1;
    cursor: pointer;
}

.quick-filter button.active {
    color: #ffffff;
    background: var(--teal-600);
}

.detail-hero {
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 430px;
    margin: 0 auto;
    display: flex;
    align-items: end;
    padding: 64px 0;
}

.detail-hero h1 {
    max-width: 840px;
    margin: 16px 0 12px;
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.08;
}

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

.detail-wrap {
    padding: 40px 0 68px;
}

.watch-panel {
    overflow: hidden;
    background: #020617;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(15, 118, 110, 0.2), rgba(0, 0, 0, 0.55));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-orb {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
    border-radius: 999px;
    font-size: 38px;
    box-shadow: 0 22px 48px rgba(8, 145, 178, 0.45);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    margin-top: 30px;
}

.detail-card {
    padding: 28px;
}

.detail-card h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-card p {
    margin: 0 0 18px;
    color: var(--gray-700);
    line-height: 1.9;
}

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

.detail-tags span {
    padding: 7px 12px;
    color: #0f766e;
    background: #ccfbf1;
}

.side-panel {
    padding: 20px;
}

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

.search-wrap {
    padding: 42px 0 68px;
}

.search-title {
    margin: 0 0 22px;
    font-size: clamp(28px, 5vw, 44px);
}

.search-box-large {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
}

.search-box-large input {
    flex: 1;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    outline: none;
}

.search-box-large button {
    padding: 0 24px;
    border: 0;
    border-radius: 16px;
}

.empty-state {
    display: none;
    padding: 34px;
    color: var(--gray-600);
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.site-footer {
    margin-top: 72px;
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 34px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
}

.footer-inner p {
    max-width: 420px;
    color: #94a3b8;
}

.footer-inner h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
}

@media (max-width: 980px) {
    .nav-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

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

    .nav-links {
        width: 100%;
        display: none;
        order: 4;
        padding: 10px 0;
        gap: 14px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-search {
        order: 3;
        min-width: 100%;
        width: 100%;
    }

    .feature-grid,
    .two-column,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .hero {
        min-height: 520px;
    }

    .hero-content {
        padding-bottom: 64px;
    }

    .hero-actions,
    .search-box-large {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .search-box-large button {
        width: 100%;
    }

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

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

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

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        min-height: 46px;
        font-size: 15px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

    .detail-hero-inner {
        min-height: 360px;
        padding: 44px 0;
    }

    .play-orb {
        width: 76px;
        height: 76px;
        font-size: 30px;
    }
}
