:root {
    --bg: #050716;
    --neon-pink: #ff2bd6;
    --neon-blue: #00d9ff;
    --neon-purple: #8b5cf6;
    --text: #f8fbff;
    --bg-image: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    overflow-x: hidden;

    background:
            linear-gradient(90deg, rgba(5,7,22,.96), rgba(5,7,22,.78), rgba(5,7,22,.92)),
            radial-gradient(circle at 20% 15%, rgba(255,43,214,.35), transparent 35%),
            radial-gradient(circle at 85% 10%, rgba(0,217,255,.25), transparent 32%),
            var(--bg-image),
            #050716;

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* BLUR BACKGROUND */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(.5);
    transform: scale(1.1);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(5,7,22,.25), rgba(5,7,22,.85));
}

/* HEADER */
h1 {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0;
    padding: 20px 30px;
    font-size: clamp(28px, 4vw, 48px);
    text-transform: uppercase;
    backdrop-filter: blur(20px);
    background-color: rgba(5,7,22,.7);
    border-bottom: 1px solid rgba(255,43,214,.2);
    background-image: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    color: transparent;
}

/* NAVIGATION (Sörpénz & Logout) */
.top-right-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 10001;
}

.beer-btn, .logout-btn {
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.beer-btn { background: var(--neon-blue); color: #000; }
.beer-btn:hover { background: var(--neon-pink); color: #fff; transform: scale(1.05); }

.logout-btn { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid var(--neon-blue); backdrop-filter: blur(5px); }
.logout-btn:hover { background: var(--neon-pink); border-color: var(--neon-pink); transform: scale(1.05); }

/* SEARCH */
.search-container { text-align: center; margin: 20px 0; }
#searchInput {
    width: 50%;
    max-width: 500px;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    outline: none;
    transition: all 0.3s ease;
}
#searchInput:focus { border-color: var(--neon-pink); box-shadow: 0 0 15px rgba(255, 43, 214, 0.4); width: 60%; }

/* GRID & SECTIONS */
#main-content { padding: 20px 40px; }
.category-section { margin-bottom: 40px; width: 100%; }
.category-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 4px solid var(--neon-pink);
    padding-left: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
}

/* CARDS */
.card {
    cursor: pointer;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(0,217,255,.2);
    background: rgba(255,255,255,.05);
    transition: .2s ease;
}
.card:hover { transform: scale(1.05); border-color: var(--neon-pink); }
.card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; }
.card-info { padding-top: 8px; }
.card-info h3 { margin: 0; font-size: 15px; }
.card-info p { margin: 4px 0 0; font-size: 12px; color: var(--neon-blue); }
.card.focused {
    transform: scale(1.08);
    border-color: var(--neon-pink);
    box-shadow: 0 0 40px rgba(255,43,214,.6), 0 0 80px rgba(0,217,255,.3);
    z-index: 10;
}

/* PREVIEW PANEL */
.preview-panel {
    grid-column: 1 / -1 !important;
    display: grid;
    grid-template-columns: 7fr 3.5fr;
    gap: 30px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
    background: rgba(10, 12, 35, 0.98);
    border: 1px solid var(--neon-pink);
    margin: 15px 0;
}

.preview-panel.active {
    max-height: 1000px;
    opacity: 1;
    padding: 30px;
}

.preview-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}
.preview-wide { width: 100%; height: 100%; object-fit: cover; }

/* DETAILS & ALIGNMENT FIX */
.preview-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px 0;
}

.preview-meta {
    font-size: 14px;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    font-weight: 600;
}

.preview-details h2 {
    margin: 0 0 15px 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    font-family: "Maven Pro", sans-serif;
    background: linear-gradient(to right, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preview-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 0;
    padding-right: 15px;
}

/* ACTIONS & BUTTONS */
.preview-actions {
    margin-top: 30px; /* Fix távolság a leírástól */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.play-btn-large {
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    border: none;
    padding: 16px 45px;
    border-radius: 40px;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    width: fit-content; /* Nem nyúlik el */
    box-shadow: 0 4px 15px rgba(255, 43, 214, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-btn-large:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 43, 214, 0.6);
}

/* SERIES UI */
.season-selector h4 { color: var(--neon-blue); margin: 15px 0 5px 0; text-transform: uppercase; font-size: 14px; }
.ep-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ep-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: white;
    width: 42px; height: 42px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.ep-btn:hover { background: var(--neon-pink); border-color: var(--neon-pink); box-shadow: 0 0 15px var(--neon-pink); transform: scale(1.1); }

/* PLAYER MODAL */
.player-modal {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.96);
    display: none; align-items: center; justify-content: center;
}
.player-modal.active { display: flex; }
.video-js { width: 100vw !important; height: 100vh !important; }

.close-player {
    position: fixed; top: 18px; right: 22px; z-index: 100000;
    width: 48px; height: 48px; border-radius: 999px; border: none;
    background: rgba(255,255,255,.12); color: white; font-size: 28px;
    cursor: pointer; backdrop-filter: blur(10px);
}

/* LOGIN BOX */
.login-overlay {
    position: fixed; inset: 0; z-index: 9999; background: #050716;
    display: flex; align-items: center; justify-content: center;
}
.login-box {
    width: min(90vw, 360px); padding: 28px; border-radius: 20px;
    background: #0b1028; border: 1px solid var(--neon-pink); text-align: center;
}
.login-box input {
    width: 100%; padding: 14px; margin-bottom: 12px; border-radius: 999px;
    border: 1px solid var(--neon-blue); background: #050716; color: white;
}
.login-box button {
    width: 100%; padding: 14px; border-radius: 999px; border: none;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue)); color: white; font-weight: bold; cursor: pointer;
}

/* SCROLLBAR */
.preview-desc::-webkit-scrollbar { width: 4px; }
.preview-desc::-webkit-scrollbar-thumb { background: var(--neon-pink); border-radius: 10px; }

/* RESPONSIVE */
@media (max-width: 1100px) {
    .preview-panel { grid-template-columns: 1fr; }
    .preview-video-wrap { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
    .btn-text { display: none; }
    #main-content { padding: 10px; }
    .preview-details h2 { font-size: 32px; }
}
/* VIDEO.JS FELIRAT HÁTTÉR ELTÜNTETÉSE ÉS KÖRVONALAZÁSA */
.video-js .vjs-text-track-cue {
    background-color: transparent !important;
}

.video-js .vjs-text-track-cue div {
    background-color: transparent !important;
    color: #ffffff !important;

    /* ALAPÉRTELMEZETT FONT ÉS MÉRET (!important nélkül, így működik a menü!) */
    font-family: "Maven Pro", sans-serif;
    font-size: 1.25em;

    /* Brutál jó fekete kontúr, hogy mindig olvasható maradjon */
    text-shadow:
            -2px -2px 0 #000,
            2px -2px 0 #000,
            -2px  2px 0 #000,
            2px  2px 0 #000,
            0px  2px 4px rgba(0, 0, 0, 0.8) !important;
}