/*
 * CMN Cinema branding tokens.
 * Update variables below to rebrand the whole cinema frontend.
 */
:root {
    --kino-color-primary: #1E003F;
    --kino-color-secondary: #5B00BF;
    --kino-color-surface: #FFFFFF;
    --kino-color-surface-soft: #F3F2F2;
    --kino-color-text: #1E003F;
    --kino-color-muted: #71639E;
    --kino-color-accent-magenta: #E233FF;
    --kino-color-accent-yellow: #FACC2E;
    --kino-color-danger: #D62839;

    --kino-font-display: "Space Grotesk", "Roboto", "Odoo Unicode Support Noto", sans-serif;
    --kino-font-body: "Roboto", "Odoo Unicode Support Noto", sans-serif;

    --kino-radius-lg: 18px;
    --kino-radius-md: 12px;
    --kino-shadow-xl: 0 28px 72px rgba(7, 0, 18, 0.42);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--kino-font-body);
    color: var(--kino-color-text);
}

.kino-theme {
    min-height: 100vh;
    background:
        radial-gradient(circle at 9% 90%, rgba(250, 204, 46, 0.18), transparent 36%),
        radial-gradient(circle at 88% 10%, rgba(226, 51, 255, 0.2), transparent 34%),
        linear-gradient(140deg, #120026 0%, #1E003F 58%, #2E0065 100%);
}

.kino-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.kino-shell {
    width: min(960px, 100%);
    border-radius: var(--kino-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: clamp(20px, 3vw, 34px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 245, 252, 0.96));
    box-shadow: var(--kino-shadow-xl);
}

.kino-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.kino-brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kino-color-primary), var(--kino-color-accent-magenta));
    box-shadow: 0 0 0 6px rgba(91, 0, 191, 0.15);
}

.kino-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--kino-color-secondary);
}

.kino-title {
    margin: 0;
    font-family: var(--kino-font-display);
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 1.07;
    color: var(--kino-color-primary);
}

.kino-lead {
    margin: 0;
    max-width: 72ch;
    color: #2B1847;
    line-height: 1.55;
}

.kino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.kino-card {
    border-radius: var(--kino-radius-md);
    border: 1px solid rgba(30, 0, 63, 0.14);
    background: #ffffff;
    padding: 14px;
}

.kino-card strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--kino-font-display);
    color: var(--kino-color-primary);
}

.kino-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    color: var(--kino-color-secondary);
}

.kino-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kino-actions-center {
    justify-content: center;
}

.kino-btn {
    display: inline-block;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid rgba(30, 0, 63, 0.24);
    text-decoration: none;
    color: var(--kino-color-primary);
    font-weight: 500;
    background: #fff;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.kino-btn:hover {
    transform: translateY(-1px);
    border-color: var(--kino-color-secondary);
    box-shadow: 0 8px 20px rgba(30, 0, 63, 0.18);
}

.kino-btn-primary {
    color: #fff;
    border-color: var(--kino-color-primary);
    background: linear-gradient(135deg, var(--kino-color-primary), #1A0036);
}

.kino-btn-primary:hover {
    border-color: #180032;
}

.kino-status-shell {
    width: min(560px, 100%);
    border-radius: var(--kino-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: clamp(20px, 3vw, 28px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 240, 250, 0.96));
    box-shadow: var(--kino-shadow-xl);
    text-align: center;
}

.kino-status-shell h1 {
    margin: 0;
    font-family: var(--kino-font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    color: var(--kino-color-primary);
}

.kino-status-shell p {
    margin: 10px 0 0;
    color: #2B1847;
}

.kino-status-shell.kino-status-error h1 {
    color: var(--kino-color-danger);
}

.kino-watch {
    height: 100vh;
    overflow: hidden;
    background: #020103;
}

.kino-watch-root {
    position: fixed;
    inset: 0;
}

.kino-player {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.kino-watermark {
    position: fixed;
    top: 12%;
    left: 8%;
    z-index: 1000;
    max-width: 72vw;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(10, 0, 24, 0.34);
    color: rgba(255, 255, 255, 0.88);
    pointer-events: none;
    user-select: none;
    padding: 6px 10px;
    font-size: 14px;
    transition: top 0.4s ease, left 0.4s ease;
}

.kino-watch-brand {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1001;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(17, 3, 34, 0.72);
    color: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(2px);
    padding: 6px 11px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Chat widget (watch page) ────────────────────────── */

.kino-chat {
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
}

.kino-chat-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(17, 3, 34, 0.82);
    color: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(4px);
    cursor: pointer;
    font-size: 0.88rem;
    font-family: var(--kino-font-body);
    font-weight: 500;
    position: relative;
    transition: background 150ms ease;
}

.kino-chat-toggle:hover {
    background: rgba(91, 0, 191, 0.85);
}

.kino-chat-unread {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--kino-color-accent-magenta);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.kino-chat-panel {
    width: min(340px, calc(100vw - 40px));
    border-radius: var(--kino-radius-lg);
    background: rgba(18, 4, 38, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--kino-shadow-xl);
    max-height: min(480px, 60vh);
}

.kino-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}


.kino-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.kino-chat-hint {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 8px 0;
}

.kino-chat-msg {
    max-width: 86%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
}

.kino-chat-msg--viewer {
    align-self: flex-end;
    background: var(--kino-color-secondary);
    color: #fff;
    border-bottom-right-radius: 3px;
}

.kino-chat-msg--operator {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    border-bottom-left-radius: 3px;
}

.kino-chat-form {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.kino-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    font-size: 0.88rem;
    font-family: var(--kino-font-body);
    outline: none;
}

.kino-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.kino-chat-input:focus {
    border-color: rgba(91, 0, 191, 0.7);
    background: rgba(255, 255, 255, 0.13);
}

.kino-chat-send {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--kino-color-secondary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms ease;
}

.kino-chat-send:hover {
    background: #7200f0;
}

/* ── Landing page ─────────────────────────────────────── */

.kino-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.kino-hero {
    padding: clamp(64px, 10vw, 120px) 24px clamp(48px, 8vw, 96px);
    text-align: center;
}

.kino-hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

.kino-hero-title {
    margin: 8px 0 20px;
    font-family: var(--kino-font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.kino-hero-lead {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 56ch;
    margin-inline: auto;
}

.kino-btn-accent {
    color: var(--kino-color-primary);
    background: var(--kino-color-accent-yellow);
    border-color: var(--kino-color-accent-yellow);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
}

.kino-btn-accent:hover {
    background: #ffd63a;
    border-color: #ffd63a;
    box-shadow: 0 8px 28px rgba(250, 204, 46, 0.38);
}

.kino-landing-content {
    flex: 1;
    background: var(--kino-color-surface-soft);
    padding: clamp(32px, 5vw, 64px) 24px;
}

.kino-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.kino-feature-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kino-feature-card strong {
    display: block;
    font-family: var(--kino-font-display);
    font-size: 1.05rem;
    color: var(--kino-color-primary);
}

.kino-feature-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #4a3868;
}

.kino-feature-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 4px;
}

.kino-cta-card {
    max-width: 960px;
    margin: 24px auto 0;
    border-radius: var(--kino-radius-lg);
    border: 1px solid rgba(30, 0, 63, 0.12);
    background: #ffffff;
    padding: clamp(20px, 3vw, 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.kino-cta-title {
    margin: 0 0 8px;
    font-family: var(--kino-font-display);
    font-size: 1.3rem;
    color: var(--kino-color-primary);
}

.kino-cta-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #4a3868;
    max-width: 54ch;
}

.kino-landing-footer {
    background: var(--kino-color-surface-soft);
    border-top: 1px solid rgba(30, 0, 63, 0.08);
    padding: 16px 24px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--kino-color-muted);
}

@media (max-width: 640px) {
    .kino-page {
        padding: 16px;
    }

    .kino-shell,
    .kino-status-shell {
        padding: 18px;
    }

    .kino-actions {
        flex-direction: column;
    }

    .kino-btn {
        text-align: center;
    }

    .kino-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .kino-watch-brand {
        font-size: 11px;
    }

    .kino-watermark {
        max-width: 90vw;
        font-size: 12px;
    }
}
