@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500&family=Roboto:wght@400;500&display=swap');

:root {
    --bg-color: #050612;
    --card-color: #0f1220;
    --accent: #00d8ff;
    --accent-secondary: #ff4fd8;
    --text: #f5f7ff;
    --muted: #99a2c7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.stellar-body {
    margin: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 216, 255, 0.15), transparent 40%), var(--bg-color);
    color: var(--text);
    font-family: 'Roboto', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.stellar-header {
    padding: 24px 5vw;
    background: linear-gradient(135deg, rgba(7, 168, 255, 0.18), rgba(255, 79, 216, 0.15));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.stellar-topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stellar-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 600;
}

.logo-icon {
    background: rgba(0, 216, 255, 0.2);
    border-radius: 10px;
    padding: 6px 10px;
}

.stellar-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.stellar-nav a {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    transition: all 0.2s ease;
}

.stellar-nav a.active,
.stellar-nav a:hover {
    background: rgba(0, 216, 255, 0.2);
    color: var(--text);
}

.stellar-search form {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px;
    border-radius: 12px;
}

.stellar-search input {
    background: transparent;
    border: none;
    color: var(--text);
    min-width: 200px;
}

.stellar-search button {
    border: none;
    background: var(--accent);
    color: #00111a;
    border-radius: 10px;
    padding: 6px 16px;
    cursor: pointer;
}

.stellar-hero {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 42px;
    margin: 12px 0;
}

.hero-desc {
    color: var(--muted);
    margin-bottom: 20px;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 999px;
    margin-right: 12px;
    border: none;
}

.btn.primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
    color: #00111a;
}

.btn.secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.hero-poster {
    position: relative;
    min-height: 220px;
    border-radius: 24px;
    overflow: hidden;
}

.poster-blur {
    position: absolute;
    inset: 0;
    background: url('../images/no-image.svg') center/cover, rgba(0, 0, 0, 0.4);
    filter: blur(12px);
}

.poster-main {
    position: relative;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(140deg, rgba(0, 0, 0, 0.6), transparent 70%);
}

.stellar-main {
    padding: 40px 5vw 80px;
}

.section {
    margin-bottom: 40px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 24px;
    margin: 0;
}

.section-head a {
    color: var(--muted);
    font-size: 14px;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.card-row.big {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.video-card {
    background: var(--card-color);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.video-card .thumb {
    display: block;
    position: relative;
}

.video-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.video-card .tag,
.video-card .duration {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    font-size: 12px;
}

.video-card .info {
    padding: 14px;
}

.video-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.video-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.category-chip {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-chip small {
    color: var(--muted);
}

.detail-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: center;
}

.detail-hero .poster img {
    width: 100%;
    border-radius: 20px;
    height: 380px;
    object-fit: cover;
}

.detail-hero .poster {
    position: relative;
}

.detail-hero .badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    color: #fff;
}

.detail-hero .meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-hero .meta h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.meta-info {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.meta-actors {
    color: var(--text);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.meta-desc {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.meta-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.meta-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.meta-actions .btn.primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
    color: #00111a;
}

.meta-actions .btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.meta-actions .btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.meta-actions .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.detail-player .player-screen {
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.detail-player #artplayer-container {
    width: 100%;
    height: clamp(280px, 52vw, 560px);
    min-height: 320px;
    background: #000;
}

.detail-player #artplayer-container .artplayer-app {
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.player-panel {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px;
}

.source-list,
.episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.source-btn,
.episode-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
}

.source-btn.active,
.episode-btn.active {
    background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
    color: #001018;
}

.stellar-footer {
    padding: 30px 5vw 60px;
    text-align: center;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.4);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.pagination {
    margin: 30px auto 0;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 960px) {
    .stellar-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .stellar-hero {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        grid-template-columns: 1fr;
    }
}

