body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 46%, #f5f7fb 100%);
    color: #0f172a;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    background: linear-gradient(135deg, #0f172a, #334155);
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    color: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(16px);
}

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

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #14b8a6, #22d3ee);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.35);
}

.logo-text {
    font-size: 22px;
    background: linear-gradient(90deg, #5eead4, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 14px;
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #ffffff;
    background: rgba(20, 184, 166, 0.9);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
}

.header-search input,
.filter-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    padding: 11px 16px;
    outline: none;
}

.filter-input {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.header-search input:focus,
.filter-input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.header-search button,
.primary-button,
.secondary-button,
.play-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(20, 184, 166, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(20, 184, 166, 0.32);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-menu a,
.mobile-menu input,
.mobile-menu button {
    width: 100%;
    margin-top: 8px;
}

.mobile-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    position: relative;
    color: #ffffff;
    background: #0f172a;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    min-height: clamp(560px, 72vh, 760px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    background-size: cover;
    background-position: center;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.34) 100%);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 44px;
    align-items: center;
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 760px;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin: 18px 0;
}

.hero-copy p {
    max-width: 760px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.hero-card img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.hero-card-label {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

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

.hero-dots button {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

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

.kicker,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
    font-weight: 800;
    font-size: 13px;
}

.hero .kicker,
.hero .badge {
    color: #99f6e4;
    background: rgba(20, 184, 166, 0.18);
    border: 1px solid rgba(45, 212, 191, 0.24);
}

.section {
    padding: 72px 0;
}

.section.tight {
    padding: 44px 0;
}

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

.section-title h2,
.page-head h1,
.movie-info h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.section-title p,
.page-head p,
.movie-info p {
    color: #64748b;
    line-height: 1.8;
}

.page-head {
    padding: 58px 0 22px;
}

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

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

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

.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0));
    transition: opacity 0.22s ease;
}

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

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
    color: #0f172a;
}

.card-title:hover {
    color: #0f766e;
}

.card-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    margin-top: auto;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.corner-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    color: #ffffff;
    background: #14b8a6;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 82px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
}

.rank-item img {
    width: 82px;
    height: 108px;
    object-fit: cover;
    border-radius: 16px;
}

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

.category-tile {
    padding: 24px;
    min-height: 190px;
    border-radius: 28px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.42), transparent 38%), linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
    transition: transform 0.22s ease;
}

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

.category-tile h2,
.category-tile h3 {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
    margin: 12px 0;
}

.category-tile p {
    color: #cbd5e1;
    line-height: 1.75;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.movie-hero {
    padding: 54px 0 38px;
    background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.28), transparent 34%), linear-gradient(135deg, #0f172a, #1e293b 58%, #0f172a);
    color: #ffffff;
}

.movie-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.movie-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

.movie-info h1,
.movie-info p {
    color: #ffffff;
}

.movie-info h1 {
    margin: 16px 0;
}

.movie-info p {
    color: #dbeafe;
    font-size: 18px;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.movie-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ccfbf1;
}

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

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.68), rgba(15, 23, 42, 0.28));
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-button {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 34px;
}

.content-card {
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 16px;
}

.content-card p {
    color: #475569;
    line-height: 1.9;
    margin-top: 12px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #99f6e4;
    font-size: 14px;
    margin-bottom: 12px;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.site-footer {
    margin-top: 70px;
    color: #cbd5e1;
    background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
    gap: 30px;
}

.footer-inner h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-inner p,
.footer-inner a {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 14px;
}

.footer-inner a:hover {
    color: #5eead4;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 20px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

[hidden] {
    display: none !important;
}

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

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

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

    .hero-card {
        max-width: 420px;
    }
}

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

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

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

    .hero-content {
        padding: 70px 0 96px;
    }

    .movie-grid,
    .category-grid,
    .rank-list,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .movie-layout {
        gap: 24px;
    }

    .movie-poster {
        max-width: 300px;
    }
}

@media (max-width: 560px) {
    .site-header-inner,
    .section-inner,
    .movie-layout,
    .footer-inner,
    .hero-content {
        width: min(100% - 24px, 1180px);
    }

    .logo-text {
        font-size: 18px;
    }

    .movie-grid,
    .category-grid,
    .rank-list,
    .footer-inner,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 52px 76px minmax(0, 1fr);
    }

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

    .hero-card img {
        height: 360px;
    }

    .section {
        padding: 48px 0;
    }
}
