:root {
    --site-primary: #0d9488;
    --site-primary-dark: #0f766e;
    --site-primary-soft: #ccfbf1;
    --site-bg: #f8fafc;
    --site-card: #ffffff;
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-border: #e5e7eb;
    --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-top: 64px;
}

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

img {
    max-width: 100%;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.logo-mark {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.32);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--site-primary);
}

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

.header-search input,
.filter-box input,
.filter-box select {
    width: 100%;
    border: 1px solid var(--site-border);
    background: #ffffff;
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    color: #111827;
}

.header-search input:focus,
.filter-box input:focus,
.filter-box select:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.header-search button,
.primary-btn,
.secondary-btn,
.play-button,
.filter-box button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    background: var(--site-primary);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.primary-btn:hover,
.play-button:hover,
.filter-box button:hover {
    background: var(--site-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.24);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: #334155;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

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

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

.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
    isolation: isolate;
}

.hero-slide.is-active {
    display: block;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.66;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.2)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 590px;
    display: grid;
    align-content: center;
    max-width: 720px;
    padding: 60px 0 92px;
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.9);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: clamp(16px, 2.4vw, 20px);
    line-height: 1.8;
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 28px;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

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

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

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

.section {
    padding: 54px 0 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--site-muted);
    line-height: 1.8;
}

.more-link {
    color: var(--site-primary-dark);
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    background: var(--site-card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--site-shadow);
}

.poster-shell {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(45, 212, 191, 0.3), transparent 32%),
        linear-gradient(135deg, #0f172a, #134e4a);
}

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

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

.poster-shell img.is-missing {
    display: none;
}

.poster-label {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(13, 148, 136, 0.9);
    font-size: 12px;
    font-weight: 800;
}

.poster-year {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.68);
    font-size: 12px;
    font-weight: 700;
}

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

.card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.4;
}

.card-meta,
.card-line {
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.7;
}

.card-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
    border: 1px solid rgba(20, 184, 166, 0.18);
    border-radius: 22px;
    padding: 22px;
    min-height: 154px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.7;
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 16px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.rank-no {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    font-weight: 900;
}

.rank-main strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.rank-main span,
.rank-score {
    color: var(--site-muted);
    font-size: 13px;
}

.page-hero {
    padding: 54px 0;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.2), transparent 34%),
        linear-gradient(135deg, #f0fdfa, #ffffff 52%, #ecfeff);
    border-bottom: 1px solid var(--site-border);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.filter-box {
    display: grid;
    grid-template-columns: 1fr 180px 140px;
    gap: 12px;
    margin: 28px 0 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.detail-hero {
    padding: 42px 0 28px;
    background:
        radial-gradient(circle at 15% 5%, rgba(45, 212, 191, 0.2), transparent 28%),
        linear-gradient(135deg, #0f172a, #134e4a);
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    margin-bottom: 24px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: end;
}

.detail-poster {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
    background: linear-gradient(135deg, #0f172a, #0f766e);
    aspect-ratio: 3 / 4;
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-poster img.is-missing {
    display: none;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-info p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.85;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 14px;
    font-weight: 700;
}

.player-card {
    position: relative;
    margin-top: 36px;
    background: #020617;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--site-shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(2, 6, 23, 0.46);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    font-size: 17px;
}

.content-panel {
    background: #ffffff;
    border: 1px solid var(--site-border);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.content-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.content-panel p {
    margin: 0 0 16px;
    color: #374151;
    line-height: 1.95;
}

.content-panel p:last-child {
    margin-bottom: 0;
}

.two-column {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 24px;
}

.site-footer {
    margin-top: 72px;
    padding: 42px 0;
    background: #111827;
    color: #9ca3af;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer p,
.site-footer li {
    color: #9ca3af;
    line-height: 1.8;
    font-size: 14px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.hidden-by-filter {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    color: var(--site-muted);
    border: 1px solid var(--site-border);
}

.empty-state.is-visible {
    display: block;
}

@media (max-width: 1040px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

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

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

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

    .detail-poster {
        width: min(280px, 80vw);
    }
}

@media (max-width: 720px) {
    body {
        padding-top: 58px;
    }

    .nav-wrap {
        height: 58px;
    }

    .logo {
        font-size: 18px;
    }

    .hero,
    .hero-content {
        min-height: 520px;
    }

    .hero-control {
        display: none;
    }

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

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

    .filter-box {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 1fr;
    }

    .rank-score {
        grid-column: 2;
    }

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

    .content-panel {
        padding: 20px;
    }
}

@media (max-width: 460px) {
    .grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
