* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #0f172a;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}

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

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

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.42);
}

.logo-text {
    font-size: 21px;
    background: linear-gradient(90deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-links a,
.mobile-panel a {
    color: #cbd5e1;
    padding: 9px 12px;
    border-radius: 12px;
    transition: 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover,
.nav-links a.is-active {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.75);
}

.global-search-form {
    min-width: 210px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.44);
}

.global-search-form input {
    min-width: 0;
    width: 100%;
    padding: 9px 0 9px 14px;
    color: #ffffff;
    outline: none;
    border: 0;
    background: transparent;
}

.global-search-form input::placeholder {
    color: #94a3b8;
}

.global-search-form button {
    width: 42px;
    height: 38px;
    border: 0;
    color: #cffafe;
    cursor: pointer;
    background: transparent;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    background: rgba(51, 65, 85, 0.8);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-panel.is-open {
    display: grid;
    gap: 6px;
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 42%, rgba(34, 211, 238, 0.2), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.08) 100%);
}

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

.hero-copy {
    max-width: 700px;
    color: #ffffff;
}

.eyebrow,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: #06b6d4;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5.4vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero p {
    max-width: 660px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-actions,
.section-actions,
.card-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 11px 18px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.34);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(51, 65, 85, 0.66);
}

.hero-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.46);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(18px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 22px;
}

.hero-card-title {
    margin: 16px 0 8px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}

.hero-card-text {
    margin: 0;
    color: #cbd5e1;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 54px;
    background: #22d3ee;
}

.hero-arrows {
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(10px);
}

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

.section {
    padding: 54px 0 8px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.section-desc {
    max-width: 680px;
    margin: 8px 0 0;
    color: #64748b;
}

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

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

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

.movie-card,
.category-card,
.rank-item,
.info-panel,
.search-panel,
.detail-panel {
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-layer {
    position: absolute;
    inset: auto 12px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.poster-layer span {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    margin: 0 0 8px;
    min-height: 48px;
    overflow: hidden;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
}

.card-text {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: #0e7490;
    font-size: 12px;
    font-weight: 700;
    background: #ecfeff;
}

.channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.channel-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    color: #164e63;
    font-weight: 800;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    transition: 0.2s ease;
}

.channel-pill:hover {
    color: #ffffff;
    background: #0891b2;
}

.search-panel {
    margin: 36px 0 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 180px));
    gap: 12px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.page-hero {
    padding: 54px 0 26px;
    color: #ffffff;
    background:
        radial-gradient(circle at 22% 18%, rgba(34, 211, 238, 0.25), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
}

.page-hero .page-shell {
    display: grid;
    gap: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a {
    color: #67e8f9;
}

.page-title {
    margin: 0;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.page-desc {
    max-width: 820px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.category-card {
    padding: 22px;
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.13);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 16px;
    color: #64748b;
}

.mini-links {
    display: grid;
    gap: 9px;
    margin: 16px 0 0;
}

.mini-links a {
    color: #0f766e;
    font-weight: 700;
}

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

.rank-item {
    padding: 14px;
    display: grid;
    grid-template-columns: 58px 86px 1fr auto;
    align-items: center;
    gap: 16px;
}

.rank-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.rank-poster img {
    width: 86px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.rank-copy h2,
.rank-copy h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.rank-copy p {
    margin: 0;
    color: #64748b;
}

.detail-layout {
    padding: 42px 0 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 28px;
}

.watch-shell {
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.38), rgba(15, 23, 42, 0.76));
}

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

.play-badge {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin: 0 auto 14px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 20px 55px rgba(34, 211, 238, 0.35);
}

.player-overlay strong {
    display: block;
    font-size: 20px;
    letter-spacing: 0.04em;
}

.watch-info {
    padding: 24px;
    color: #e2e8f0;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.watch-info h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 24px;
}

.watch-info p {
    margin: 0;
    color: #cbd5e1;
}

.detail-panel {
    padding: 24px;
}

.detail-panel h2,
.info-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-panel p,
.info-panel p {
    margin: 0 0 16px;
    color: #334155;
}

.detail-meta {
    display: grid;
    gap: 10px;
    margin: 16px 0 20px;
}

.detail-meta div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.detail-meta strong {
    color: #0f172a;
}

.side-poster {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
}

.article-content {
    padding: 10px 0 42px;
}

.article-content h2 {
    margin: 32px 0 12px;
    font-size: 28px;
}

.article-content p {
    max-width: 920px;
    color: #334155;
    font-size: 17px;
}

.empty-state {
    display: none;
    padding: 34px;
    text-align: center;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    background: #ffffff;
}

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

.site-footer {
    margin-top: 56px;
    color: #cbd5e1;
    background: #020617;
}

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

.footer-inner p {
    margin: 10px 0 0;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

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

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

@media (max-width: 1024px) {
    .nav-links,
    .global-search-form {
        display: none;
    }

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

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

    .hero-card {
        display: none;
    }

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

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

    .search-panel {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .hero {
        height: auto;
        min-height: 620px;
    }

    .hero-content {
        padding: 72px 0 92px;
    }

    .hero p,
    .page-desc {
        font-size: 16px;
    }

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

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

    .search-panel {
        grid-template-columns: 1fr;
    }

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

    .rank-item .btn {
        grid-column: 2 / -1;
        width: max-content;
    }

    .rank-poster img {
        width: 68px;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 15px;
    }

    .page-hero {
        padding: 42px 0 20px;
    }
}
