/* =====================================================
   ARKNIGHTS ENDFIELD PRELANDER – 100 vh single-screen
===================================================== */

/* -------- CSS VARIABLES -------- */
:root {
    --bg: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-chat: #0f0f0f;
    --bg-input: #272727;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8e8e8;
    --muted: #aaaaaa;
    --dim: #717171;
    --accent: #00c8ff;
    --accent-2: #7b5cf5;
    --red: #ff4444;
    --green: #00e676;
    --gold: #f5c518;

    --header-h: 48px;
    --gap: 8px;

    --font: 'Inter', sans-serif;
    --font-title: 'Rajdhani', sans-serif;
    --ease: 0.22s ease;
}

/* -------- RESET -------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
    /* ← lock to 100vh, no scroll */
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

/* -------- SCROLLBAR (chat only) -------- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* =====================================================
   HEADER  (fixed, compact)
===================================================== */
.site-header {
    height: var(--header-h);
    background: #111;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 10;
}

.header-inner {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-icon {
    font-size: 1.3rem;
    color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent));
    line-height: 1;
}

.logo-text em {
    color: var(--accent);
    font-style: normal;
}

/* Right nav */
.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 4px;
}

.live-dot {
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1.4s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .2
    }
}

.viewer-count {
    color: var(--muted);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =====================================================
   PAGE GRID  (fills rest of viewport)
===================================================== */
.page-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 360px;
    overflow: hidden;
    min-height: 0;
}

/* =====================================================
   LEFT COLUMN
===================================================== */
.left-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px 10px 10px 14px;
    gap: 8px;
    border-right: 1px solid var(--border);
}

/* --- Video --- */
.video-wrap {
    position: relative;
    width: 100%;
    flex: 1;
    /* takes all remaining height */
    min-height: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Channel strip --- */
.channel-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.channel-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.channel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.channel-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.verified-icon {
    color: var(--dim);
    font-size: 0.65rem;
    margin-left: 2px;
}

.channel-subs {
    font-size: 0.72rem;
    color: var(--dim);
}

.meta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.meta-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 500;
    transition: background var(--ease);
}

.meta-btn:hover {
    background: #2a2a2a;
}

.subscribe-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 50px;
    background: var(--text);
    color: #0f0f0f;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: .4px;
    transition: opacity var(--ease);
}

.subscribe-btn:hover {
    opacity: 0.88;
}

.subscribe-btn.subscribed {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

/* --- Value + CTA strip --- */
.value-cta-strip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 4px;
}

/* Value pills */
.value-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.vpill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: border-color var(--ease), color var(--ease);
}

.vpill:hover {
    border-color: rgba(0, 200, 255, .35);
    color: var(--accent);
}

.vpill-icon {
    font-size: 0.85rem;
}

/* CTA block */
.cta-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.cta-eyebrow {
    font-size: 0.72rem;
    color: var(--dim);
    text-align: right;
}

.cta-heading {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    line-height: 1.15;
}

.highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Primary CTA button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff2d2d, #c0000a);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    /* always-on animations */
    animation: ctaPulse 1.8s ease-in-out infinite, ctaBeat 1.8s ease-in-out infinite;
    box-shadow:
        0 0 0 0 rgba(255, 45, 45, 0.7),
        0 6px 24px rgba(200, 0, 10, 0.55);
    border: 1px solid rgba(255, 120, 120, 0.25);
    transition: filter 0.15s ease;
}

.btn-primary:hover {
    filter: brightness(1.12);
    animation-play-state: paused;
    /* freeze pulse, let hover shine */
}

.btn-primary:active {
    transform: scale(0.96);
}

/* Continuous glow-ring pulse */
@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 45, 45, .75), 0 6px 24px rgba(200, 0, 10, .55);
    }

    55% {
        box-shadow: 0 0 0 14px rgba(255, 45, 45, .0), 0 8px 32px rgba(200, 0, 10, .7);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 45, 45, .0), 0 6px 24px rgba(200, 0, 10, .55);
    }
}

/* Subtle size beat so it breathes */
@keyframes ctaBeat {

    0%,
    100% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.04);
    }
}

/* Sweeping shine always running */
.btn-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    animation: shine 1.9s linear infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -60%;
    }

    100% {
        left: 130%;
    }
}

/* Platform icons */
.platform-badges {
    display: flex;
    gap: 5px;
}

.platform-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--muted);
}

/* =====================================================
   CHAT COLUMN (right)
===================================================== */
.chat-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-chat);
}

/* Header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-title {
    font-size: 0.86rem;
    font-weight: 600;
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dim);
    font-size: 0.78rem;
}

.chat-live-badge {
    background: var(--red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Superchat bar */
.super-chat-bar {
    display: flex;
    gap: 5px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    flex-shrink: 0;
}

.super-chat-bar::-webkit-scrollbar {
    height: 3px;
}

.sc-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}

.sc-1 {
    background: #1565c0;
}

.sc-2 {
    background: #00695c;
}

.sc-3 {
    background: #6a1b9a;
}

.sc-4 {
    background: #1b5e20;
}

.sc-5 {
    background: #4a148c;
}

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6px 0;
    min-height: 0;
}

/* Single message */
.chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 12px;
    opacity: 0;
    transform: translateY(10px);
    animation: msgIn 0.3s ease forwards;
    transition: background 0.15s;
}

.chat-msg:hover {
    background: rgba(255, 255, 255, 0.04);
}

@keyframes msgIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}

.msg-body {
    flex: 1;
    min-width: 0;
}

.msg-top {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 1px;
}

.msg-username {
    font-size: 0.75rem;
    font-weight: 600;
}

.msg-badge {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--accent);
    color: #000;
    letter-spacing: .4px;
}

.msg-text {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
}

.msg-emojis {
    display: block;
    margin-top: 1px;
    font-size: 0.95rem;
}

.msg-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    color: var(--dim);
    font-size: 0.7rem;
    cursor: pointer;
    width: fit-content;
    padding: 2px 6px;
    border-radius: 20px;
    transition: background var(--ease), color var(--ease);
}

.msg-likes:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--accent);
}

.msg-likes i {
    font-size: 0.6rem;
}

/* Superchat highlight */
.chat-msg.is-superchat {
    background: linear-gradient(90deg, rgba(21, 101, 192, .22), transparent);
    border-left: 3px solid #1565c0;
    border-radius: 0 4px 4px 0;
    margin: 3px 8px;
    padding-left: 9px;
}

/* Input */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-input-field {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 0.78rem;
}

.chat-input-placeholder {
    color: var(--dim);
}

.chat-send-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform var(--ease), box-shadow var(--ease);
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 200, 255, .5);
}

/* =====================================================
   NOTIFICATIONS
===================================================== */
.notification {
    position: fixed;
    bottom: 24px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 9999;
    transform: translateY(16px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    pointer-events: none;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-success {
    background: linear-gradient(135deg, #00c47a, #007a4c);
}

.notification-info {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* =====================================================
   RESPONSIVE – below 900px stack vertically
===================================================== */
@media (max-width: 900px) {

    html,
    body {
        overflow: auto;
    }

    .page-grid {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .chat-col {
        height: 380px;
        border-top: 1px solid var(--border);
    }

    .value-cta-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-block {
        align-items: flex-start;
    }

    .cta-heading,
    .cta-eyebrow {
        text-align: left;
    }
}