/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-weight: 400;
}

/* ── Kino page (main app) ───────────────────────── */
body.kino-page {
    overflow: hidden; /* let .main-content scroll internally */
}
body.kino-page .app-container {
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Left Sidebar */
.sidebar {
    width: 300px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #222;
    padding: 2rem 1rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.logo-image {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.logo-wordmark {
    color: #e5e7eb;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-links li.active {
    background-color: rgba(59, 130, 246, 0.18);
    border-left: 3px solid #3B82F6;
}

.nav-links li i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.nav-links li:hover {
    background-color: #0f1b3a;
}

.nav-links li.active:hover {
    background-color: rgba(59, 130, 246, 0.3);
}

.search-container {
    margin: 0.5rem 0 1rem;
    width: 100%;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 230px;
}

.search-icon {
    position: absolute;
    left: 0.55rem;
    top: 56%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35), 0 6px 14px rgba(0,0,0,0.25);
    pointer-events: none;
    background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA0NDQ0NDQ0NDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw//wQALCASwBLABABEA/8QAQwABAQEBAQEAAAAAAAAAAAAAAAQBAgMHEAEBAQABAgQFBAIDAQAAAAAAEQECITEDQVFxEmGBkfATscHRIqEy4fFC/9oACAEAAAA/APogxWCRrFYJGsVgkaxWCRrFYJGsVgkaxWCRrFYJGsVgkaxWCRrFYJGsVgkaxWCRrFYJGsVgkaxWCRrFYJGsVgkaxWCRrFYJGsVgkaxWCRrFYJGsVgkaxWCUYrBI1isEjWKwSNYrBI1isEjWKwSNYrBI1isEjWKwSNYrBI1isEjWKwSNYrBI1isEjWKwSNYrBI1isEjWKwSNYrBI1isEjWKwSNYrBI1isEjWKwSNYrBJSisEhRWCQorBIUVgkKKwSFFYJCisEhRWCQorBIUVgkKKwSFFYJCisEhRWCQorBIUVgkKKwSFFYJCisEhRWCQorBIUVgkKKwAShCKwSQhFYJIQisEkIRWCSEIrBJCEVgkhCKwSQhFYJIQisEkIRWCSEIrBJCEVgkhCKwSQhFYJIQisEkIRWCSEIrBJCEVglGKwSY1isEjWKwSNYrBI1isEjWKwSNYrBI1isEjWKwSNYrBJzmYrBJSisEhRWCQp6qwSFFYJCisEhRWCQorBIUVgkKKwSFFYJCisEhRWCQorBIUVgkKKwSFFYJCisEhRWCQorBIUVgkKKwSFFYJCisAEkIRWCSEIrBJCEVgkhCKwSQhFYJIQisEkIRWCSEIrBJCEVglzOhdMVglzub55Vgkzk4qsEkIRWCSEIrBJCEVgkhCKwSQhFYJIQisEkIRWCSEIrBJCEVgkhCKwSQhFYJIQisEkIRWCVnBWCSevIxVCi7x06pe2ykAQpWTi5nPpGVYqBkYAAAAAAABWwzb2ADPkb3sBuSpuAAAALmn7z3Tq7HTF1pnc7PuPW2wfyYp2ZVc+5NVzf2bg2XtjQcEbxacbbulScdmVvW/8AGpg6aRKO4VOa06/UZS0YXGwsZxmEJiFfntw7tM5FkPwUG1QAspNVpeGLqwuyvttfZ41s13uy+iWeXTHSvXjr/aV17WZyjj5IZiqeEtrY3R2elsapEmEAGnqKXhWR3itJFZzJ+6FQbXHLGU8cLsVjqhVNGB6M0tc/N+jlTS0eb0mxDpbc/TxJDipZvEVbByWWNludFIzMwtLBAAGpp+1ZsoO8StKloBvnDc5gXI1XpjLu+RNRJexEUXplmtANxs2pZM0AAAAANE0dznYJ7xK0kVgb5w3OwFyNL5xy3vlTUSXsRFFyodm0Afc3vK1k1mkAAAAAAI06pnti7xO0kUwNOHb3AFyJQucct75U1zHdK1KrvXBjqX6SrpVzHN2B7FYEHdI1d5ndYLeMScjrAXrHbN1YZsdpM3gCgXqTtXyzjTqmuOHb2sSDzqmpciSVLJreC0COwHY5jpVrI5bGermhrxOXTmGWQVAlzqmyc1olrew5BA78HcBSSNPoBtOj3u36PNym4C0sOKKx6N5GauaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH//Z");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.75rem;
    background-color: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    color: #fff;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.search-bar input::placeholder {
    color: #666;
}

.quick-links {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.quick-link {
    background: #181818;
    color: #ccc;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.quick-link:hover {
    color: #fff;
    box-shadow: 0 0 0 1px rgba(59,130,246,0.6);
    background: #111b33;
}

.playlists {
    flex: 1;
}

.playlist-section h3 {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.playlist-section ul {
    list-style: none;
    padding: 0;
}

.playlist-section li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
}

.playlist-section li:hover {
    color: #3B82F6;
}

.playlist-section li i {
    margin-right: 0.75rem;
    width: 16px;
}

.library-playlists {
    margin-bottom: 2rem;
}

.user-area {
    border-top: 1px solid #222;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.user-info {
    flex: 1;
}

.username {
    font-weight: bold;
    margin: 0;
}

.email {
    color: #999;
    font-size: 0.8rem;
    margin: 0.25rem 0;
}

.logout-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #333;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.main-content section {
    display: none;
}

.main-content section.active {
    display: block;
}

.content-wrapper {
    padding: 2rem 3rem;
    background: linear-gradient(165deg, #111 0%, #181818 50%, #111 100%);
    min-height: 100vh;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.top-actions {
    position: sticky;
    top: 0;
    z-index: 1200;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 3rem 0.5rem;
    margin: -2rem -3rem 1.25rem;
    background: linear-gradient(180deg, #0a0a0a 0%, rgba(10,10,10,0.85) 70%, transparent 100%);
    backdrop-filter: blur(12px);
}

.content-wrapper > .top-actions {
    margin-bottom: 1.25rem;
}



.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 0.55rem 1.35rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    text-decoration: none;
    line-height: 1.1;
}

.header-btn i {
    font-size: 0.95rem;
}

.header-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(59,130,246,0.6);
    box-shadow: 0 12px 24px rgba(59,130,246,0.25);
}

.membership-btn {
    background: linear-gradient(120deg, #fbbf24, #f59e0b, #fb7185);
    color: #0b0b0b;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 14px 26px rgba(251,191,36,0.3);
}

.membership-btn:hover {
    box-shadow: 0 16px 30px rgba(251,191,36,0.36);
}

.signin-btn {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}

.highlight-pulse {
    animation: pulse-shadow 1.1s ease;
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
    100% { box-shadow: 0 0 0 18px rgba(59,130,246,0); }
}

/* Hero Banner */
.hero-banner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.18), transparent 45%), radial-gradient(circle at 85% 10%, rgba(236,72,153,0.16), transparent 52%), #10121a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 15px;
    padding: 2.25rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .hero-banner {
        flex-direction: row;
        align-items: center;
        gap: 1.75rem;
        width: 100%;
    }
    .banner-right {
        flex: 1;
        max-width: 720px;
    }
}

@media (max-width: 899px) {
    .hero-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
}

.banner-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
    width: fit-content;
    margin-bottom: 0.75rem;
}

.banner-logo img {
    width: 54px;
    height: 54px;
}

.banner-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.banner-logo-wordmark {
    color: #dbeafe;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.banner-logo-subtitle {
    color: #9fb6e3;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.banner-right {
    flex: 1;
}

.banner-eyebrow {
    color: #9fb6e3;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.8rem;
    margin: 0 0 0.5rem 0;
}

.banner-right h1 {
    color: #3B82F6;
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 15px #3B82F6;
}

.banner-tagline {
    color: #ccc;
    font-style: italic;
    margin: 0 0 1.4rem 0;
}

/* Library hero sizing to avoid over-stretch */
.library-page .hero-banner {
    max-width: 980px;
    width: calc(100% - 2.5rem);
    margin: 1.25rem auto 2rem auto;
}


.banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.meta-chip {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e5e7eb;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.meta-chip i {
    color: #3B82F6;
}

.banner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.banner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(59,130,246,0.22), rgba(37,99,235,0.18));
    border: 1px solid rgba(59,130,246,0.4);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.45);
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(59,130,246,0.4);
    border-color: rgba(59,130,246,0.65);
}

.banner-link.ghost {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
    color: #dbeafe;
}

.banner-link.ghost:hover {
    box-shadow: 0 14px 26px rgba(0,0,0,0.4);
}

.btn-primary {
    background: linear-gradient(45deg, #3B82F6, #1D4ED8);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59,130,246,0.8);
}

.btn-secondary {
    background-color: transparent;
    color: #3B82F6;
    border: 2px solid #3B82F6;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #3B82F6;
    color: #fff;
}

/* Discovery Tabs */
.discovery-tabs {
    margin-bottom: 3rem;
}

.discovery-tabs h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.tabs {
    display: flex;
    gap: 1rem;
}

.tab {
    background-color: #181818;
    color: #ccc;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab.active {
    background: linear-gradient(45deg, #3B82F6, #1D4ED8);
    color: #fff;
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

.tab:hover {
    background-color: #222;
    color: #fff;
}

/* Content Grid */
.content-grid h3 {
    color: #fff;
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
}

/* Clips */
.clips-wrapper {
    padding: 0;
}

.clips-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, #0e172f, #0b1020);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.25rem 1.5rem;
    box-shadow: 0 18px 36px rgba(0,0,0,0.35);
}

.clips-hero-left h2 {
    margin: 0.25rem 0;
    font-size: 2rem;
}

.clips-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chip {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    color: #d1d5db;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.clips-hero-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.clips-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.clips-pill span {
    display: block;
    color: #fff;
    font-weight: 700;
}

.clips-pill small {
    color: #9ca3af;
}

.clips-viewer {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 400px;
    height: calc(100vh - 320px);
}

.clips-feed {
    flex: 1;
    max-width: 100%;
    height: 100%;
    min-height: 80vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.clips-feed::-webkit-scrollbar {
    width: 8px;
}

.clips-feed::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
}

.clip-card {
    position: relative;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px);
    background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.18), transparent 45%), radial-gradient(circle at 80% 10%, rgba(236,72,153,0.18), transparent 50%), #0a0f1f;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 45px rgba(0,0,0,0.55);
    overflow: hidden;
}

.clip-video-frame {
    position: relative;
    width: min(440px, 48vw);
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.55);
    background: #000;
}

.clip-video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.clip-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.6) 78%, rgba(0,0,0,0.78));
    pointer-events: none;
}

.clip-overlay {
    position: absolute;
    inset: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    pointer-events: none;
}

.clip-meta h3 {
    margin: 0 0 0.4rem 0;
    color: #fff;
}

.clip-meta p {
    margin: 0.1rem 0;
    color: #e5e7eb;
}

.clip-meta .muted {
    color: #9ca3af;
    font-size: 0.9rem;
}

.clip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.clip-tags span {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.25rem 0.55rem;
    font-size: 0.85rem;
    color: #cdd4ff;
}

.clip-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
}

.circle-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
    box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

.circle-btn span {
    display: block;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.circle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(59,130,246,0.35);
}

.clip-follow {
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(59,130,246,0.7);
    background: linear-gradient(135deg, rgba(59,130,246,0.35), rgba(37,99,235,0.15));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 10px 22px rgba(59,130,246,0.35);
}


.unified-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.unified-card {
    padding: 1.25rem;
    border-radius: 14px;
    background: #121826;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.unified-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pill {
    background: rgba(59,130,246,0.2);
    color: #3B82F6;
    border: 1px solid rgba(59,130,246,0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-header .meta {
    color: #9fb6e3;
    font-size: 0.8rem;
}

.unified-card h3 {
    margin: 0.25rem 0;
    color: #fff;
}

.unified-card p {
    margin: 0;
    color: #b9c4dd;
    font-size: 0.92rem;
    line-height: 1.4;
}

.unified-card.premium {
    background: radial-gradient(circle at 10% 10%, rgba(255,215,128,0.15), transparent 45%), #111827;
    border-color: rgba(255,215,128,0.2);
}

.unified-card.premium .pill {
    background: rgba(255,215,128,0.2);
    color: #ffd780;
    border-color: rgba(255,215,128,0.3);
}

.unified-card.clips {
    background: radial-gradient(circle at 90% 15%, rgba(236,72,153,0.2), transparent 45%), #0f182b;
}

.unified-card.live {
    background: radial-gradient(circle at 15% 85%, rgba(16,185,129,0.2), transparent 45%), #0a1224;
}

.empty-state {
    background-color: #111;
    border: 1px dashed #333;
    border-radius: 12px;
    color: #aaa;
    padding: 1rem;
    text-align: center;
}

/* ── Kino-specific component classes ────────────── */
.kino-live-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease;
    margin-bottom: 0.65rem;
}
.kino-live-item:hover {
    border-color: rgba(59,130,246,0.45);
    transform: translateY(-1px);
}
.kino-live-thumb {
    flex: 0 0 140px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.kino-live-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kino-live-info {
    flex: 1;
    min-width: 0;
}
.kino-live-info .eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
}
.kino-live-info h4 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kino-live-info p {
    color: #9ca3af;
    margin: 0;
    font-size: 0.85rem;
}
.kino-credit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}
.kino-credit-row span {
    color: #9ca3af;
    font-size: 0.9rem;
}
.kino-credit-grid {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}
.kino-thumb-wrap {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: #090d15;
}
.kino-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kino-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.kino-card-actions .btn-primary {
    flex: 1;
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
}
.kino-card-actions .btn-secondary {
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
}
.kino-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    color: #9ca3af;
    font-size: 0.82rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.video-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59,130,246,0.4);
}

.video-item video {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.video-item .info {
    padding: 1rem;
}

.video-item h4 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.video-item p {
    color: #999;
    margin: 0;
    font-size: 0.85rem;
}

/* Horizontal List */
.horizontal-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.vertical-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vertical-list .video-item,
.playlist-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.vertical-list .video-item video,
.playlist-item video {
    width: 140px;
    height: 80px;
    flex: 0 0 140px;
    border-radius: 8px;
}

.vertical-list .video-item .info,
.playlist-item .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

/* Playlist Banner */
.playlist-banner {
    display: flex;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.playlist-banner .banner-left {
    flex: 0 0 300px;
}

.playlist-banner .banner-left img {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    object-fit: cover;
}

/* Creator Cards */
.creator-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.creator-card {
    background-color: #181818;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.creator-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.creator-card h4 {
    color: #fff;
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.creator-card p {
    color: #999;
    margin: 0;
    font-size: 0.8rem;
}

/* Series Grid */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Exclusive Banner */
.exclusive-banner {
    margin-top: 3rem;
    background: linear-gradient(45deg, #3B82F6, #1D4ED8);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.exclusive-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.banner-text {
    flex: 3;
}

.banner-text h2 {
    color: #fff;
    font-size: 2rem;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.banner-text p {
    color: #fff;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
}

.exclusive-banner .banner-buttons {
    flex-direction: column;
    gap: 0.5rem;
}

.exclusive-banner img {
    width: 200px;
    height: 281px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Upload Section */
.upload-dropzone {
    background: linear-gradient(45deg, #181818, #222);
    border: 2px dashed #444;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.upload-dropzone:hover {
    border-color: #3B82F6;
    box-shadow: 0 0 20px rgba(59,130,246,0.3);
}

.upload-dropzone i {
    color: #999;
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.upload-dropzone p {
    color: #999;
    margin: 0;
    font-size: 1.2rem;
}

#video-upload {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
}

/* Video Player */
.player-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.player-main {
    flex: 1;
    min-width: 0;
}

.video-player {
    background-color: #111;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.video-player video {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background-color: #000;
    border-radius: 8px;
}

.video-info {
    margin-top: 1rem;
}

.video-info h1 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.video-info p {
    color: #3B82F6;
    margin: 0;
    font-weight: bold;
}

.player-description, .comments-section {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.player-description h3, .comments-section h3 {
    color: #fff;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.comment {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.comment:last-child {
    border-bottom: none;
}

.comment img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: bold;
    color: #3B82F6;
    margin-bottom: 0.25rem;
}

.comment-time {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.comment-text {
    color: #fff;
    margin: 0;
}

.comment-input {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.comment-input textarea {
    flex: 1;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    resize: none;
    min-height: 80px;
}

.comment-input button {
    background-color: #3B82F6;
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-input button:hover {
    background-color: #1D4ED8;
}

/* Player Sidebar */
.player-sidebar {
    width: 320px;
    flex-shrink: 0;
    background-color: #111;
    border-radius: 12px;
    padding: 1.25rem;
}

.creator-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.creator-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.creator-info {
    flex: 1;
}

.creator-info h4 {
    color: #3B82F6;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.creator-info p {
    color: #ccc;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.view-profile {
    color: #3B82F6;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.up-next {
    margin-top: 2rem;
}

.up-next h3 {
    color: #fff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.up-next-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: background-color 0.3s;
}

.up-next-item:hover {
    background-color: #1a1a1a;
}

.up-next-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.up-next-item .info {
    flex: 1;
}

.up-next-item h4 {
    color: #fff;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.up-next-item p {
    color: #999;
    margin: 0;
    font-size: 0.8rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    min-width: 400px;
    position: relative;
}

.modal-content h2 {
    color: #fff;
    margin: 0 0 2rem 0;
    text-align: center;
}

.modal-content #login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#signup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.modal-content input {
    width: 80%;
    margin: 0.5rem 0;
    padding: 1rem;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #fff;
    backdrop-filter: blur(10px);
}

.modal-content select {
    width: 86%;
    margin: 0.5rem 0;
    padding: 1rem;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    color: #fff;
    backdrop-filter: blur(10px);
}

#signup-form input {
    width: 86%;
    max-width: 420px;
    text-align: center;
}

#signup-form button {
    max-width: 420px;
}

#signup-form .membership-subtitle {
    max-width: 420px;
}

#signup-form select {
    text-align: center;
    text-align-last: center;
    width: 86%;
    max-width: 420px;
}

.modal-content button {
    width: 100%;
    margin-top: 1rem;
    background: linear-gradient(45deg, #3B82F6, #1D4ED8);
    color: #fff;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(59,130,246,0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.modal-content button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(59,130,246,0.45);
    opacity: 0.95;
}

.modal-content button:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(59,130,246,0.4);
}

.exit-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    margin-top: 0.6rem;
    box-shadow: none;
}

.exit-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
}

.auth-subtext {
    margin-top: 0.75rem;
    color: #9ca3af;
    font-size: 0.85rem;
    text-align: center;
    letter-spacing: 0.2px;
}

.auth-link {
    background: none;
    border: none;
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.membership-content h2 {
    margin-bottom: 0.6rem;
}

.membership-subtitle {
    margin: 0 0 1.25rem;
    color: #cdd8ff;
    text-align: center;
}

/* Membership Page */
.membership-page {
    background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.25), transparent 32%), radial-gradient(circle at 80% 10%, rgba(236,72,153,0.2), transparent 32%), #0a0a12;
    color: #e5e7eb;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
}

.membership-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem;
}

.membership-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.membership-logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #3B82F6;
    text-shadow: 0 0 12px rgba(59,130,246,0.6);
}

.membership-actions {
    display: flex;
    gap: 0.75rem;
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0.55rem 1.35rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.membership-hero {
    background: linear-gradient(120deg, rgba(59,130,246,0.14), rgba(236,72,153,0.12));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    margin-bottom: 2rem;
}

.eyebrow {
    color: #9fb6e3;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.6px;
    margin: 0 0 0.35rem 0;
}

.membership-hero h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    color: #fff;
}

.membership-hero p {
    margin: 0;
    color: #cdd5ee;
    max-width: 700px;
    line-height: 1.5;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tier-card {
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 36px rgba(0,0,0,0.35);
    background: #111827;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tier-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 70%);
    pointer-events: none;
}

.tier-card .tier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.tier-card h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #fff;
}

.tier-card .tier-tagline {
    margin: 0 0 0.85rem 0;
    color: #cfd9ff;
}

.label-chip {
    background: rgba(255,255,255,0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: grid;
    gap: 0.45rem;
    flex: 1;
}

.benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #d6ddf8;
}

.benefits li::before {
    content: '•';
    color: #3B82F6;
    margin-top: -1px;
}

.tier-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
    background: linear-gradient(120deg, #3B82F6, #1D4ED8);
    color: #fff;
    box-shadow: 0 12px 28px rgba(59,130,246,0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-top: auto;
    cursor: pointer;
}

.tier-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(59,130,246,0.45);
}

.tier-cta.ghost {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.2);
    box-shadow: none;
}

.tier-card.classic {
    background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.16), transparent 50%), #0f172a;
}

.tier-card.plus {
    background: radial-gradient(circle at 80% 20%, rgba(236,72,153,0.18), transparent 55%), #141024;
}

.tier-card.premium {
    background: radial-gradient(circle at 50% 0%, rgba(251,191,36,0.28), transparent 58%), #1a1306;
    border-color: rgba(251,191,36,0.25);
}

.tier-card.premium .label-chip {
    background: rgba(251,191,36,0.22);
    border-color: rgba(251,191,36,0.3);
    color: #fef3c7;
}

.tier-note {
    margin-top: 1.25rem;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
    }
    .hero-banner {
        flex-direction: column;
        text-align: center;
    }
    .player-wrapper {
        flex-direction: column;
    }
    .player-main, .player-sidebar {
        max-width: 100%;
        width: 100%;
    }
    .membership-shell {
        padding: 1.5rem 1.25rem 2rem;
    }
    .membership-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .tier-grid {
        grid-template-columns: 1fr;
    }
    .clips-viewer {
        flex-direction: column;
    }
    .clips-feed {
        max-width: 100%;
        height: auto;
        max-height: none;
    }
    .clip-card {
        min-height: 70vh;
    }
}

.generate-page .hero-banner {
    max-width: 980px;
    width: calc(100% - 2.5rem);
    margin: 1.25rem auto 2rem auto;
}

/* Generator form controls */
.generate-page textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    color: #e5e7eb;
    font-size: 0.95rem;
    font-family: inherit;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 10px 24px rgba(0,0,0,0.25);
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
}
.generate-page textarea::-webkit-resizer,
.generate-page textarea::-webkit-scrollbar {
    display: none;
}
.upload-page textarea::-webkit-resizer,
.upload-page textarea::-webkit-scrollbar {
    display: none;
}
.generate-page textarea:focus {
    outline: none;
    border-color: rgba(59,130,246,0.6);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.6), 0 12px 26px rgba(59,130,246,0.18);
}

/* Generator form controls (dark theme with custom arrow) */
.generate-page select,
.generate-page textarea,
.upload-page select,
.upload-page textarea {
    width: 100%;
    background: rgba(11,15,26,0.92);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    color: #e5e7eb;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    resize: none;
    overflow-y: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 10px 24px rgba(0,0,0,0.25);
}
.generate-page select:focus,
.generate-page textarea:focus,
.upload-page select:focus,
.upload-page textarea:focus {
    outline: none;
    border-color: rgba(59,130,246,0.6);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.6), 0 12px 26px rgba(59,130,246,0.18);
}
.generate-page select,
.upload-page select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #cbd5e1 50%), linear-gradient(135deg, #cbd5e1 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% + 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
    background-color: #0b0f1a;
}
.generate-page select option,
.upload-page select option {
    background-color: #0b0f1a;
    color: #e5e7eb;
}

.hidden {
    display: none;
}

.zero-margin {
    margin: 0;
}

.helper-note {
    display: block;
    margin-top: 4px;
}

.muted {
    color: #9ca3af;
}

.section-title {
    margin: 0 0 0.5rem 0;
}

.section-copy {
    margin: 0 0 0.5rem 0;
}

.action-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.series-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.section-heading-spaced {
    margin-top: 1.25rem;
}

.library-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.library-header-text h2 {
    margin: 0.25rem 0;
}

.library-header-text p {
    margin: 0;
    color: #9ca3af;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.folder-card {
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #0d1222;
    box-shadow: 0 14px 28px rgba(0,0,0,0.32);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.folder-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 18px 36px rgba(0,0,0,0.38);
}

.folder-card.active {
    border-color: rgba(59,130,246,0.8);
    box-shadow: 0 18px 36px rgba(59,130,246,0.3);
}

.folder-card h4 {
    margin: 0 0 0.25rem 0;
}

.folder-meta {
    color: #9ca3af;
    font-size: 0.9rem;
}

.playlist-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.playlist-card {
    padding: 1.1rem;
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(26,28,45,0.95), rgba(16,18,30,0.9));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 36px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.playlist-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 10% 10%, rgba(59,130,246,0.15), transparent 55%),
                radial-gradient(140% 140% at 90% 20%, rgba(34,211,238,0.12), transparent 60%);
    pointer-events: none;
    opacity: 0.9;
}

.playlist-card h4 {
    margin: 0 0 0.35rem 0;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.playlist-card p {
    margin: 0;
    color: #d1d5db;
    font-weight: 600;
}

.playlist-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

.playlist-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    color: #e5e7eb;
    font-size: 0.85rem;
}

.uploader-shell {
    display: grid;
    grid-template-columns: minmax(340px, 1.1fr) minmax(320px, 1fr);
    grid-auto-flow: column;
    gap: 1.25rem;
    align-items: start;
}

.preview-card {
    align-self: start;
}

.gen-panel,
.series-panel {
    background: #0d1222;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 18px 36px rgba(0,0,0,0.35);
}

.gen-panel h3,
.series-panel h3 {
    margin: 0 0 0.6rem 0;
}

.upload-page .form-field,
.series-page .form-field {
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.upload-page .form-field label,
.series-page .form-field label {
    color: #9ca3af;
    font-size: 0.9rem;
}

.upload-page input,
.series-page input,
.series-modal input,
.series-page textarea {
    width: 100%;
    background: rgba(11,15,26,0.92);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    color: #e5e7eb;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15), 0 10px 24px rgba(0,0,0,0.25);
}

.upload-page input:focus,
.series-page input:focus,
.series-modal input:focus,
.series-page textarea:focus {
    outline: none;
    border-color: rgba(59,130,246,0.6);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.6), 0 12px 26px rgba(59,130,246,0.18);
}

.upload-page .hero-banner {
    max-width: 1040px;
    width: calc(100% - 2rem);
    margin: 0 auto 1.35rem;
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
}

.upload-drop {
    border: 2px dashed rgba(255,255,255,0.08);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
}

.upload-drop:hover {
    border-color: rgba(59,130,246,0.6);
}

.upload-drop-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.upload-drop-title {
    font-weight: 700;
}

.upload-drop-copy,
.upload-preview-meta {
    margin-top: 6px;
}

.upload-drop-copy {
    font-size: 13px;
}

.series-launch {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.series-status {
    color: #9ca3af;
}

.upload-page .series-grid,
.series-modal .series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.series-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(6px);
}

.series-modal .modal-content {
    background: #0d1222;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 1.25rem;
    width: min(720px, 92vw);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.series-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.preview-card video {
    width: 100%;
    border-radius: 12px;
}

.preview-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.65rem;
}

.preview-title-input {
    flex: 1;
    min-width: 180px;
}

.upload-empty-preview {
    margin: 0;
}

.series-page .hero-banner {
    max-width: 980px;
    width: calc(100% - 2.5rem);
    margin: 0 auto 1.5rem;
}

.series-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.series-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.series-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}

.series-card h4 {
    margin: 0 0 0.35rem 0;
}

.series-card p {
    margin: 0;
    color: #9ca3af;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.schedule-item {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e5e7eb;
    box-shadow: 0 10px 22px rgba(0,0,0,0.3);
}

.schedule-item .meta {
    color: #9ca3af;
    font-size: 0.9rem;
}

.storyboard-page {
    --storyboard-primary: #4c8dff;
    --storyboard-primary-deep: #e6edff;
    --storyboard-accent: #5aa1ff;
    --storyboard-text: #e6edff;
    --storyboard-muted: #98a8c7;
    --storyboard-bg: #070d18;
    --storyboard-panel: #0c1526;
    --storyboard-panel-2: #0a1322;
    --storyboard-border: #17233a;
    --storyboard-shadow: 0 24px 70px rgba(0,0,0,0.48);
    --storyboard-button-border: #2f4a78;
    font-family: Arial, sans-serif;
    color: var(--storyboard-text);
    background: var(--storyboard-bg);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.storyboard-page * {
    box-sizing: border-box;
}

.storyboard-header {
    border-bottom: 1px solid var(--storyboard-border);
    backdrop-filter: blur(6px);
    background: rgba(10,18,32,0.9);
    padding: 12px 24px;
}

.storyboard-header-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.storyboard-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.storyboard-brand img {
    height: 32px;
    width: auto;
}

.storyboard-nav {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
    justify-content: flex-end;
}

.storyboard-nav a {
    color: var(--storyboard-muted);
    text-decoration: none;
}

.storyboard-shell {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.storyboard-sidebar {
    width: 280px;
    background: var(--storyboard-panel);
    border-right: 1px solid var(--storyboard-border);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.storyboard-back-link {
    color: var(--storyboard-muted);
    text-decoration: none;
    font-weight: 600;
}

.storyboard-sidebar label {
    color: var(--storyboard-muted);
    font-size: 13px;
    font-weight: 600;
}

.storyboard-sidebar textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--storyboard-border);
    background: var(--storyboard-panel-2);
    color: var(--storyboard-text);
    resize: none;
    overflow: hidden;
    min-height: 100px;
    font-family: inherit;
}

.storyboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.storyboard-preview-area {
    flex: 1;
    padding: 20px;
    overflow: auto;
    border-bottom: 1px solid var(--storyboard-border);
    background: var(--storyboard-bg);
}

.storyboard-preview-player {
    max-width: 600px;
    margin: 0 auto;
}

.storyboard-preview-player video {
    width: 100%;
    border-radius: 8px;
    background: #000;
}

.storyboard-empty-state {
    text-align: center;
    color: var(--storyboard-muted);
    padding: 40px;
}

.storyboard-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.storyboard-timeline {
    height: 120px;
    background: var(--storyboard-panel);
    border-top: 1px solid var(--storyboard-border);
    padding: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
}

#timeline-clips {
    display: flex;
    gap: 8px;
    align-items: center;
}

.timeline-clip {
    min-width: 90px;
    height: 90px;
    background: var(--storyboard-panel-2);
    border: 1px solid var(--storyboard-border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: var(--storyboard-muted);
    position: relative;
    transition: background 200ms, border-color 200ms;
}

.timeline-clip:hover {
    background: #12213a;
    border-color: var(--storyboard-accent);
}

.timeline-clip.active {
    background: rgba(76,141,255,0.14);
    border-color: var(--storyboard-accent);
}

.timeline-clip-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255,0,0,0.3);
    color: #ff6b6b;
    border: 1px solid var(--storyboard-button-border);
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    cursor: pointer;
    display: none;
}

.timeline-clip:hover .timeline-clip-delete {
    display: block;
}

.timeline-add {
    min-width: 40px;
    height: 90px;
    background: rgba(76,141,255,0.12);
    border: 1px dashed rgba(90,161,255,0.55);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    color: var(--storyboard-accent);
}

.timeline-add:hover {
    background: rgba(90,161,255,0.18);
}

.storyboard-footer {
    padding: 12px 24px;
    color: var(--storyboard-muted);
    background: var(--storyboard-panel);
    border-top: 1px solid var(--storyboard-border);
}

.storyboard-footer-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.storyboard-btn {
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--storyboard-primary);
    color: var(--storyboard-primary-deep);
    border: 1px solid var(--storyboard-button-border);
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--storyboard-shadow);
    text-decoration: none;
    display: inline-block;
}

@media (max-width: 980px) {
    .uploader-shell,
    .series-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .uploader-shell {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }
}

@media (max-width: 760px) {
    .storyboard-header {
        padding: 10px 12px;
    }

    .storyboard-shell {
        flex-direction: column;
    }

    .storyboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--storyboard-border);
    }
}


/* ==========================================================================
   SPA Additions: Player, Library Folders, Upload Shell, Memberships
   ========================================================================== */

/* --- Player --- */
.player-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
    padding-bottom: 4rem;
}
@media (max-width: 1024px) {
    .player-wrapper {
        grid-template-columns: 1fr;
    }
}
.video-player {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}
.video-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: contain;
}
.kino-credit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.kino-credit-row {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1rem;
    border-radius: 12px;
}
.kino-credit-row span {
    font-size: 0.8rem;
    color: var(--kino-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}
.kino-credit-row strong {
    font-size: 1rem;
    color: var(--kino-text);
}
.up-next-item {
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0.5rem;
    border-radius: 12px;
}
.up-next-item:hover {
    background: rgba(255,255,255,0.04);
    transform: translateX(4px);
}
.player-sidebar {
    position: sticky;
    top: 2rem;
}

/* --- Library Folders --- */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.folder-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.folder-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}
.folder-card.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(16,185,129,0.1));
    border-color: rgba(59,130,246,0.3);
}
.folder-card h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--kino-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.folder-card h4 i {
    color: var(--kino-blue);
}
.folder-card .folder-meta {
    color: var(--kino-muted);
    font-size: 0.9rem;
}

/* --- Utilities --- */
.hidden { display: none !important; }
