/* Anime Klub — közös stíluslap (index + cim + felfedezes) */
:root {
    --bg: #0d0e1a;
    --bg2: #161829;
    --card: #1c1f36;
    --card-hover: #232745;
    --border: #2c3050;
    --text: #e8eaf6;
    --muted: #8b90b5;
    --accent: #ff6b9d;
    --accent2: #7c6bff;
    --green: #4ade80;
    --gold: #fbbf24;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    background-image: radial-gradient(ellipse at top, #1a1040 0%, var(--bg) 55%);
    color: var(--text);
    min-height: 100vh;
}
a { color: var(--accent2); }
img, video, iframe { max-width: 100%; }
/* hosszú cím/szó/URL ne feszítse szét a layoutot */
.dtitle, .card-body h3, .prof-name, .mini-title, .shop-label, .np-title, .pod-name,
.ctext, .chat-msg, .notif-text, .dnote, .note, .cm-text, .member-chip, .rp,
.rank-name, .lb-row, .points-info, h1, h2, h3 { overflow-wrap: anywhere; }
.info, .watch-main, .card-body, .party-main, .rank-name, .vt, .cm-row { min-width: 0; }

/* ---------- AUTH ---------- */
#authScreen {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
}
.auth-box {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 18px; padding: 36px 32px; width: 100%; max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.auth-box h1 { font-size: 1.7em; margin-bottom: 4px; text-align: center; }
.auth-logo { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto 8px; }
.brand { line-height: 0; }
.brand img { height: 46px; width: auto; display: block; }
@media (max-width: 600px) { .brand img { height: 38px; } }
.auth-box .sub { color: var(--muted); text-align: center; margin-bottom: 24px; font-size: .92em; }
.auth-box input {
    width: 100%; padding: 12px 14px; margin-bottom: 12px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); font-size: 1em; outline: none;
}
.auth-box input:focus { border-color: var(--accent2); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tabs button {
    flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg2); color: var(--muted); cursor: pointer; font-size: .95em;
}
.auth-tabs button.active { background: var(--accent2); color: #fff; border-color: var(--accent2); }
.btn-main {
    width: 100%; padding: 13px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; font-size: 1.05em; font-weight: 600; cursor: pointer;
}
.btn-main:hover { filter: brightness(1.1); }
.auth-err { color: #f87171; font-size: .9em; min-height: 1.3em; margin-bottom: 8px; text-align: center; }

/* ---------- KERET ---------- */
#app { display: none; max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 22px;
}
header h1 { font-size: 1.6em; }
header h1 a { color: inherit; text-decoration: none; }
header h1 span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95em; flex-wrap: wrap; }
.user-chip b { color: var(--text); }
.user-chip button, .user-chip a.navbtn {
    background: var(--bg2); border: 1px solid var(--border); color: var(--muted);
    padding: 6px 14px; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 1em;
}
.user-chip button:hover, .user-chip a.navbtn:hover { color: var(--text); }

/* hozzáadás */
.add-bar { margin-bottom: 18px; }
#btnShowAdd {
    width: 100%; padding: 14px; border: 2px dashed var(--border); border-radius: 14px;
    background: transparent; color: var(--muted); font-size: 1.05em; cursor: pointer;
}
#btnShowAdd:hover { border-color: var(--accent2); color: var(--text); }
.up-prompt {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
    padding: 14px; border: 2px dashed var(--border); border-radius: 14px; color: var(--muted); font-size: .95em;
}
.btn-up {
    background: linear-gradient(135deg, #0ea5e9, #4FD1B9); border: none; color: #06121a;
    padding: 9px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: .95em;
}
.btn-up:hover { filter: brightness(1.08); }
#addForm {
    display: none; background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 20px;
}
#addForm .row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
#addForm input, #addForm select, #addForm textarea {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 9px;
    color: var(--text); padding: 10px 12px; font-size: .95em; outline: none;
    flex: 1; min-width: 130px; font-family: inherit;
}
#addForm input:focus, #addForm textarea:focus { border-color: var(--accent2); }
#addForm textarea { width: 100%; resize: vertical; min-height: 56px; }
.mal-results {
    display: none; background: var(--bg2); border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: 10px; max-height: 260px; overflow-y: auto;
}
.mal-results .hit {
    display: flex; gap: 10px; padding: 8px 10px; cursor: pointer; align-items: center;
    border-bottom: 1px solid var(--border);
}
.mal-results .hit:hover { background: var(--card-hover); }
.mal-results .hit img { width: 38px; height: 54px; object-fit: cover; border-radius: 5px; }
.mal-results .hit .t { font-size: .92em; }
.mal-results .hit .m { font-size: .8em; color: var(--muted); }
.form-actions { display: flex; gap: 10px; }
.form-actions .btn-main { width: auto; flex: 1; }
.btn-ghost {
    padding: 12px 18px; border-radius: 10px; border: 1px solid var(--border);
    background: transparent; color: var(--muted); cursor: pointer;
}

/* felkapott / szezon (felfedezés oldal) */
.trend-sec { margin-bottom: 22px; }
.trend-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.trend-head h2 { font-size: 1.1em; }
.trend-head .src { font-size: .78em; color: var(--muted); }
.trend-browse-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.trend-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.trend-strip .tcard { flex: 0 0 140px; }
.btn-more {
    display: block; margin: 16px auto 0; padding: 11px 26px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--bg2); color: var(--text); cursor: pointer; font-size: .95em;
}
.btn-more:hover { border-color: var(--accent2); }
.btn-more:disabled { opacity: .5; cursor: default; }
.tabbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tcard {
    flex: 0 0 140px; background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; position: relative;
}
.tcard img { width: 140px; height: 190px; object-fit: cover; display: block; }
.tcard .tt {
    padding: 8px 9px 4px; font-size: .8em; line-height: 1.25; height: 3.2em; overflow: hidden;
}
.tcard .tm { padding: 0 9px 8px; font-size: .75em; color: var(--gold); }
.tcard .tm small { color: var(--muted); }
.tcard .tadd {
    width: 100%; border: none; padding: 8px; cursor: pointer; font-size: .8em; font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
}
.tcard .tadd:disabled { background: var(--bg2); color: var(--green); cursor: default; }
.tcard .trank {
    position: absolute; top: 6px; left: 6px; background: rgba(13,14,26,.85); color: var(--gold);
    font-size: .75em; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}

/* szűrők */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.filters input, .filters select {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 9px;
    color: var(--text); padding: 9px 12px; font-size: .9em; outline: none;
}
.filters input { flex: 1; min-width: 160px; }
.fchip {
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--bg2); color: var(--muted); cursor: pointer; font-size: .87em;
}
.fchip.active { background: var(--accent2); border-color: var(--accent2); color: #fff; }

/* kártyák */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.card .cover {
    height: 170px; background: var(--bg2); position: relative;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .cover .noimg { font-size: 3em; opacity: .25; }
.card .cover a.coverlink { position: absolute; inset: 0; }
.badge {
    position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px;
    font-size: .75em; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .5px;
}
.badge.anime { background: var(--accent); }
.badge.film { background: var(--accent2); }
.badge.sorozat { background: #0ea5e9; }
.seen-pill {
    position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px;
    font-size: .75em; font-weight: 600; background: rgba(13,14,26,.8); color: var(--green);
    border: 1px solid var(--green); display: none;
}
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 { font-size: 1.05em; line-height: 1.3; }
.meta { color: var(--muted); font-size: .82em; display: flex; gap: 10px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: .85em; font-style: italic; }
.scores { display: flex; align-items: center; gap: 12px; font-size: .9em; }
.scores .avg { color: var(--gold); font-weight: 600; }
.scores .wc { color: var(--muted); cursor: default; }
.card-actions {
    display: flex; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border);
    align-items: center; flex-wrap: wrap;
}
.btn-watch {
    flex: 1; padding: 8px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg2); color: var(--muted); cursor: pointer; font-size: .87em; min-width: 90px;
}
.btn-watch.on { background: rgba(74,222,128,.12); border-color: var(--green); color: var(--green); }
.rate-sel {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); padding: 8px 6px; font-size: .87em; cursor: pointer;
}
.rate-sel.rated { border-color: var(--gold); color: var(--gold); }
.icon-btn {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
    color: var(--muted); padding: 8px 10px; cursor: pointer; font-size: .87em; text-decoration: none;
}
.icon-btn:hover { color: var(--text); }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 1.1em; }

/* épp nézem szekció + állapotjelzők */
.sec-title { font-size: 1.15em; margin: 4px 0 12px; }
.cont-flag {
    display: block; font-size: .84em; padding: 7px 11px; border-radius: 9px;
    text-decoration: none; font-weight: 600;
}
.cont-flag.new { background: rgba(255,107,157,.13); border: 1px solid var(--accent); color: var(--accent); }
.cont-flag.new:hover { background: rgba(255,107,157,.22); }
.cont-flag.wait { background: var(--bg2); border: 1px dashed var(--border); color: var(--muted); font-weight: 400; }
.cont-flag.done { background: rgba(74,222,128,.1); border: 1px solid var(--green); color: var(--green); }
.btn-nezem {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
    color: var(--muted); padding: 8px 10px; cursor: pointer; font-size: .87em;
}
.btn-nezem.on { background: rgba(124,107,255,.15); border-color: var(--accent2); color: var(--accent2); }
.newvid { font-size: .85em; }
.btn-wish {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
    color: var(--muted); padding: 10px 16px; cursor: pointer; font-size: .95em;
}
.btn-wish:hover { color: var(--text); }
.btn-wish.on { background: rgba(251,191,36,.13); border-color: var(--gold); color: var(--gold); }

/* pontok + modalok */
.points-chip {
    background: rgba(251,191,36,.1); border: 1px solid var(--gold); color: var(--gold);
    padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9em; cursor: pointer;
}
.modal-bg {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6);
    z-index: 50; align-items: center; justify-content: center; padding: 20px;
}
.modal-bg.open { display: flex; }
.modal {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 24px; width: 100%; max-width: 460px; max-height: 85vh; overflow-y: auto;
}
.modal h2 { font-size: 1.2em; margin-bottom: 14px; }
.modal .close-x { float: right; background: none; border: none; color: var(--muted); font-size: 1.3em; cursor: pointer; }
.edit-form { display: flex; flex-direction: column; gap: 10px; }
.edit-form label { display: flex; flex-direction: column; gap: 4px; font-size: .82em; color: var(--muted); }
.edit-form input, .edit-form textarea {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 9px;
    padding: 9px 11px; color: var(--text); font: inherit; font-size: .95rem; width: 100%;
}
.edit-form input:focus, .edit-form textarea:focus { outline: none; border-color: var(--accent); }
.edit-form textarea { resize: vertical; }
.edit-form .ef-row { display: flex; gap: 10px; }
.edit-form .ef-row label { flex: 1; }
.edit-form .btn-main { margin-top: 4px; }
/* jelentés gombok + badge */
.ep-report, .crep { opacity: .55; }
.ep-report:hover, .crep:hover { opacity: 1; filter: none; }
.rep-badge {
    display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px;
    background: #ff5252; color: #fff; border-radius: 10px;
    font-size: .72em; font-weight: 700; line-height: 18px; text-align: center;
}
.inv-row {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
}
.inv-row code { font-size: 1.05em; letter-spacing: 1px; color: var(--accent); flex: 1; }
.inv-row.used code { color: var(--muted); text-decoration: line-through; }
.inv-row .st { font-size: .8em; color: var(--muted); }
.inv-row button {
    background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
    color: var(--muted); padding: 5px 10px; cursor: pointer;
}
.points-info { font-size: .85em; color: var(--muted); margin: 12px 0; line-height: 1.6; }
.lb-row { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: .95em; }
.lb-row .pts { color: var(--gold); font-weight: 600; }
.lb-row:first-child { color: var(--gold); }

/* ---------- ALOLDAL (cim.php) ---------- */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.back-link {
    color: var(--muted); text-decoration: none; font-size: .95em; padding: 8px 14px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--bg2);
}
.back-link:hover { color: var(--text); border-color: var(--accent2); }
.detail { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 24px; }
.detail .poster { flex: 0 0 230px; position: relative; }
.detail .poster img { width: 230px; border-radius: 14px; border: 1px solid var(--border); display: block; }
.detail .poster .noimg {
    width: 230px; height: 320px; display: flex; align-items: center; justify-content: center;
    font-size: 4em; opacity: .25; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
}
.detail .info { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 12px; }
.detail h1.dtitle { font-size: 1.8em; line-height: 1.2; }
.detail .dmeta { color: var(--muted); font-size: .95em; display: flex; gap: 14px; flex-wrap: wrap; }
.detail .dnote {
    color: var(--muted); font-style: italic; background: var(--card);
    border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
}
.detail .dscores { display: flex; align-items: center; gap: 16px; font-size: 1.05em; flex-wrap: wrap; }
.detail .dscores .avg { color: var(--gold); font-weight: 700; font-size: 1.2em; }
.detail .dactions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.detail .dactions .btn-watch { flex: 0 0 auto; padding: 10px 18px; font-size: .95em; }
.rating-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.rating-pills .rp {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 999px;
    padding: 4px 12px; font-size: .82em; color: var(--muted);
}
.rating-pills .rp b { color: var(--gold); }
.sec {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    padding: 18px; margin-bottom: 20px;
}
.sec h2 { font-size: 1.15em; margin-bottom: 14px; }

/* kommentek */
.comments .c { font-size: .92em; margin-bottom: 10px; }
.comments .c b { color: var(--accent); }
.comments .c .d { color: var(--muted); font-size: .85em; margin-left: 6px; }
.comments .cform { display: flex; gap: 6px; margin-top: 10px; }
.comments .cform input {
    flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); padding: 10px 12px; font-size: .92em; outline: none;
}
.comments .cform button {
    background: var(--accent2); border: none; border-radius: 8px; color: #fff;
    padding: 10px 16px; cursor: pointer;
}

/* videók + lejátszó */
.player-wrap {
    position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;
    border-radius: 12px; overflow: hidden; margin-bottom: 14px; display: none;
}
.player-wrap iframe, .player-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-row {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px;
}
.vid-row.playing { border-color: var(--accent); }
.vid-row .vt { flex: 1; font-size: .92em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid-row .vm { font-size: .78em; color: var(--muted); }
.vid-row .seen { color: var(--green); font-size: .85em; }
.vid-row button {
    background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
    color: var(--text); padding: 6px 12px; cursor: pointer; font-size: .85em;
}
.vid-row button.play-btn { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; color: #fff; font-weight: 600; }
.vid-add { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.vid-add input {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 9px;
    color: var(--text); padding: 9px 12px; font-size: .9em; outline: none;
}
.vid-add input.vlabel { flex: 1; min-width: 110px; }
.vid-add input.vurl { flex: 3; min-width: 200px; }
.vid-add button {
    background: var(--accent2); border: none; border-radius: 9px; color: #fff;
    padding: 9px 16px; cursor: pointer; font-weight: 600;
}
.open-ext { font-size: .85em; color: var(--muted); margin-bottom: 10px; display: none; }

/* ---------- LEJÁTSZÓS NÉZET (cim.php): balra videó, jobbra részek ---------- */
.watch-layout { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.watch-main { flex: 1 1 70%; min-width: 0; }
.watch-main .detail { margin-bottom: 0; }
.watch-side {
    flex: 0 0 30%; max-width: 30%; background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px; display: flex; flex-direction: column; max-height: 80vh;
}

/* profiloldal */
.prof-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.avatar {
    width: 84px; height: 84px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4em; font-weight: 800; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
/* megvásárolható avatar-keretek — animált, vagány (a gyűrű színe + ragyogás mozog) */
.av-gold    { box-shadow: 0 0 0 3px #fbbf24, 0 0 18px 2px rgba(251,191,36,.6);  animation: glow-gold 1.9s ease-in-out infinite; }
.av-neon    { box-shadow: 0 0 0 3px #4FD1B9, 0 0 18px 2px rgba(79,209,185,.6);  animation: glow-neon 2.4s linear infinite; }
.av-fire    { box-shadow: 0 0 0 3px #f87171, 0 0 18px 2px rgba(248,113,113,.6); animation: glow-fire .85s ease-in-out infinite alternate; }
.av-rainbow { box-shadow: 0 0 0 3px #ff6b9d, 0 0 20px 3px rgba(255,107,157,.6); animation: glow-rainbow 3s linear infinite; }
@keyframes glow-gold { 50% { box-shadow: 0 0 0 3px #fff6cc, 0 0 30px 6px rgba(251,191,36,.9); } }
@keyframes glow-neon {
    0%,100% { box-shadow: 0 0 0 3px #4FD1B9, 0 0 18px 2px rgba(79,209,185,.6); }
    50%     { box-shadow: 0 0 0 3px #7c6bff, 0 0 28px 6px rgba(124,107,255,.85); }
}
@keyframes glow-fire {
    0%   { box-shadow: 0 0 0 3px #f87171, 0 0 14px 2px rgba(248,113,113,.5); }
    100% { box-shadow: 0 0 0 3px #fb923c, 0 0 30px 8px rgba(251,146,60,.9); }
}
@keyframes glow-rainbow {
    0%   { box-shadow: 0 0 0 3px #ff6b9d, 0 0 20px 3px rgba(255,107,157,.6); }
    33%  { box-shadow: 0 0 0 3px #4FD1B9, 0 0 22px 4px rgba(79,209,185,.7); }
    66%  { box-shadow: 0 0 0 3px #7c6bff, 0 0 22px 4px rgba(124,107,255,.7); }
    100% { box-shadow: 0 0 0 3px #ff6b9d, 0 0 20px 3px rgba(255,107,157,.6); }
}

/* animált szivárvány-név */
.name-rainbow {
    background: linear-gradient(90deg, #ff6b9d, #fbbf24, #4FD1B9, #7c6bff, #ff6b9d);
    background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-weight: 800; animation: rainbow-move 3s linear infinite;
}
@keyframes rainbow-move { to { background-position: 220% center; } }

@media (prefers-reduced-motion: reduce) {
    .av-gold, .av-neon, .av-fire, .av-rainbow,
    .av-gold::before, .av-neon::before, .av-fire::before, .av-rainbow::before,
    .name-rainbow { animation: none !important; }
}

/* pontbólt */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.shop-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shop-card.equipped { border-color: var(--gold); background: rgba(251,191,36,.06); }
.shop-prev { height: 60px; display: flex; align-items: center; justify-content: center; }
.shop-label { font-size: .9em; font-weight: 600; }
.shop-btn { background: var(--bg2); border: 1px solid var(--accent2); color: var(--accent2); border-radius: 9px; padding: 8px 14px; cursor: pointer; font-size: .85em; font-weight: 600; }
.shop-btn:hover { background: var(--accent2); color: #fff; }
.shop-btn.buy { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; color: #fff; }
.shop-btn.buy:hover { filter: brightness(1.1); }
.prof-name { font-size: 1.7em; }
.prof-sub { color: var(--muted); font-size: .9em; margin: 4px 0; }
.prof-points { color: var(--gold); font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.stat-num { font-size: 1.5em; font-weight: 800; }
.stat-label { color: var(--muted); font-size: .82em; margin-top: 3px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.ach { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 8px; text-align: center; opacity: .4; filter: grayscale(1); transition: .15s; cursor: pointer; }
.ach:hover { transform: translateY(-2px); border-color: var(--accent2); }
.ach.on { opacity: 1; filter: none; border-color: var(--gold); background: rgba(251,191,36,.08); }
.ach-emoji { font-size: 2em; }
.ach-title { font-size: .8em; margin-top: 5px; font-weight: 600; }
.ach-hint { color: var(--muted); font-size: .82em; margin-top: 10px; text-align: center; }
/* dashboard */
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin-top: 14px; }
.dash-stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.dash-num { font-size: 1.5em; font-weight: 800; color: var(--accent2); }
.mchart { display: flex; align-items: flex-end; gap: 10px; height: 130px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.mbar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 6px; }
.mbar-fill { width: 70%; max-width: 40px; min-height: 4px; background: linear-gradient(180deg, var(--accent), var(--accent2)); border-radius: 6px 6px 0 0; }
.mbar-lbl { font-size: .72em; color: var(--muted); }
/* értesítés-beállítások */
.np-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; font-size: .92em; cursor: pointer; }
.np-row input { width: 20px; height: 20px; cursor: pointer; accent-color: var(--accent2); }
.ach-pop-emoji { font-size: 4em; line-height: 1; }
.ach-pop-req { color: var(--muted); font-size: .92em; margin-bottom: 14px; }
.ach-pop-state { padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .9em; }
.ach-pop-state.got { background: rgba(251,191,36,.12); border: 1px solid var(--gold); color: var(--gold); }
.ach-pop-state.locked { background: var(--bg2); border: 1px dashed var(--border); color: var(--muted); }
.mini-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.mini-card:hover { border-color: var(--accent2); }
.mini-cover { height: 150px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 2.5em; overflow: hidden; }
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-title { padding: 8px 10px 2px; font-size: .85em; font-weight: 600; line-height: 1.25; }
.mini-score { padding: 0 10px 10px; color: var(--gold); font-size: .82em; }

/* watch-party */
.party-layout { display: flex; gap: 18px; align-items: flex-start; }
.party-main { flex: 1 1 66%; min-width: 0; }
.party-side { flex: 0 0 32%; max-width: 32%; display: flex; flex-direction: column; gap: 14px; }
.party-block { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.sync-note { color: var(--muted); font-size: .82em; margin-top: 8px; }
.members { display: flex; flex-wrap: wrap; gap: 6px; }
.member-chip { background: var(--bg2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: .82em; }
.party-eps { max-height: 200px; overflow-y: auto; }
.party-chatwrap { display: flex; flex-direction: column; }
.party-chat { height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin: 8px 0; padding-right: 4px; }
.chat-msg { font-size: .88em; line-height: 1.35; word-break: break-word; }
.chat-form { display: flex; gap: 6px; }
.chat-form input { flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 9px 11px; font-size: .9em; outline: none; }
.chat-form button { background: var(--accent2); border: none; border-radius: 8px; color: #fff; padding: 9px 14px; cursor: pointer; }
@media (max-width: 860px) {
    .party-layout { flex-direction: column; }
    .party-side { flex: 1 1 auto; width: 100%; max-width: none; }
}

/* szavazás */
.poll-opt { position: relative; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; overflow: hidden; }
.poll-opt:hover { border-color: var(--accent2); }
.poll-opt.mine { border-color: var(--accent); }
.poll-fill { position: absolute; top: 0; left: 0; bottom: 0; background: rgba(124,107,255,.18); transition: width .4s; }
.poll-opt.mine .poll-fill { background: rgba(255,107,157,.2); }
.poll-row { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 11px 14px; font-size: .92em; }
.poll-name { font-weight: 600; overflow-wrap: anywhere; }
.poll-pct { color: var(--muted); white-space: nowrap; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 6px; max-height: 300px; overflow-y: auto; }
.pick-item { display: flex; align-items: center; gap: 7px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: .85em; cursor: pointer; }

/* kihívások */
.chal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.chal { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.chal.done { border-color: var(--green); background: rgba(74,222,128,.06); }
.chal-top { display: flex; align-items: center; gap: 7px; font-size: .9em; }
.chal-ic { font-size: 1.2em; }
.chal-desc { flex: 1; min-width: 0; }
.chal-bonus { color: var(--gold); font-weight: 700; font-size: .85em; white-space: nowrap; }
.chal-bar { height: 7px; background: var(--bg2); border-radius: 999px; overflow: hidden; margin: 8px 0 5px; }
.chal-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; transition: width .4s; }
.chal.done .chal-fill { background: var(--green); }
.chal-prog { font-size: .78em; color: var(--muted); display: flex; justify-content: space-between; }
.chal-period { opacity: .7; }

/* lista nézet (kompakt sorok) */
.grid.list-mode { grid-template-columns: 1fr; gap: 8px; }
.grid.list-mode .card { flex-direction: row; align-items: stretch; }
.grid.list-mode .cover { width: 86px; min-width: 86px; height: auto; }
.grid.list-mode .cover img { height: 100%; }
.grid.list-mode .seen-pill, .grid.list-mode .badge { display: none; }
.grid.list-mode .card-body { padding: 10px 12px; gap: 5px; }
.grid.list-mode .card-body h3 { font-size: .98em; }
.grid.list-mode .note, .grid.list-mode .genres { display: none; }
.grid.list-mode .card-actions { border-top: none; border-left: 1px solid var(--border); flex-direction: column; justify-content: center; padding: 8px; }
@media (max-width: 480px) { .grid.list-mode .card-actions { display: none; } }

/* műfaj-címkék */
.genres { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0; }
.genre-chip { background: var(--bg2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; font-size: .74em; color: var(--muted); }
.dnote + .genres, .info .genres { margin-top: 6px; }

/* szabályzat / doc oldal */
.doc h2 { font-size: 1.1em; margin-bottom: 10px; }
.doc p { line-height: 1.6; margin-bottom: 6px; }
.doc ul { margin: 0 0 0 18px; line-height: 1.75; }
.doc-muted { color: var(--muted); font-size: .9em; margin-top: 10px; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table td { padding: 7px 4px; border-bottom: 1px solid var(--border); }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table td:last-child { text-align: right; color: var(--gold); font-weight: 700; white-space: nowrap; }

/* aktivitás-feed */
.feed-item { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.feed-ic { font-size: 1.3em; flex: 0 0 auto; }
.feed-body { flex: 1; min-width: 0; font-size: .92em; line-height: 1.4; }
.feed-body a { color: var(--accent2); text-decoration: none; }
.feed-time { color: var(--muted); font-size: .78em; margin-top: 2px; }

/* admin oldal */
.pane { margin-bottom: 30px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; }
.atable { width: 100%; border-collapse: collapse; font-size: .9em; min-width: 640px; }
.atable th, .atable td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.atable th { background: var(--bg2); color: var(--muted); font-weight: 600; font-size: .85em; position: sticky; top: 0; }
.atable tr:last-child td { border-bottom: none; }
.atable td.num { font-weight: 700; color: var(--gold); }
.atable .muted-s { color: var(--muted); font-size: .85em; }
.nowrap { white-space: nowrap; }
.role-sel, #actUser {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); padding: 6px 8px; font-size: .85em; cursor: pointer;
}
.act-cell { white-space: nowrap; }
.ab {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 7px;
    color: var(--text); padding: 5px 9px; cursor: pointer; font-size: .8em; margin: 2px 2px 2px 0;
}
.ab:hover { border-color: var(--accent2); }
.ab.ban { border-color: #f87171; color: #f87171; }
.ab.ban:hover { background: rgba(248,113,113,.12); }
.ab.unban { border-color: var(--green); color: var(--green); }
.st-ok { color: var(--green); font-size: .85em; }
.st-ban { color: #f87171; font-weight: 600; font-size: .85em; }
.st-susp { color: var(--gold); font-size: .85em; }
.act-filter { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; color: var(--muted); font-size: .9em; }
.cm-row { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.cm-head { font-size: .88em; margin-bottom: 6px; }
.cm-head a { color: var(--accent2); text-decoration: none; }
.cm-text { font-size: .95em; }

/* rangsor oldal: dobogó + lista */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 18px 0 30px; }
.pod { flex: 1 1 0; max-width: 200px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 8px 14px; text-align: center; }
.pod-medal { font-size: 2em; line-height: 1; }
.pod-name { font-weight: 700; margin: 8px 0 3px; font-size: .95em; word-break: break-word; }
.pod-pts { color: var(--gold); font-weight: 700; }
.pod-1 { transform: translateY(-14px); border-color: var(--gold); box-shadow: 0 0 24px rgba(251,191,36,.22); }
.pod-1 .pod-medal { font-size: 2.7em; }
.pod.me { outline: 2px solid var(--accent2); outline-offset: 2px; }
.rank-list { max-width: 560px; margin: 0 auto; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.rank-row.me { background: rgba(124,107,255,.08); border-radius: 10px; }
.rank-no { color: var(--muted); font-weight: 700; width: 30px; }
.rank-name { flex: 1; min-width: 0; }
.rank-pts { color: var(--gold); font-weight: 600; white-space: nowrap; }
.winner-banner {
    background: linear-gradient(135deg, rgba(251,191,36,.14), rgba(124,107,255,.1));
    border: 1px solid var(--gold); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px;
    text-align: center; font-size: .95em;
}
@media (max-width: 520px) {
    .pod-medal { font-size: 1.6em; } .pod-1 .pod-medal { font-size: 2em; }
    .pod-name { font-size: .8em; } .pod { padding: 12px 5px 10px; }
}

/* rang-badge a nevek mellé */
.role-badge {
    display: inline-block; font-size: .66em; font-weight: 800; padding: 2px 8px;
    border-radius: 999px; margin-left: 5px; vertical-align: middle;
    text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.role-badge.admin { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1530; box-shadow: 0 0 10px rgba(251,191,36,.35); }
.role-badge.mod   { background: linear-gradient(135deg, var(--accent2), var(--green)); color: #fff; }
.role-badge.up    { background: linear-gradient(135deg, #0ea5e9, #4FD1B9); color: #06121a; }
.uname-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.uname-link:hover { color: var(--accent2); border-bottom-color: var(--accent2); }
.streak-chip {
    background: rgba(255,107,157,.12); border: 1px solid var(--accent); color: var(--accent);
    padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9em;
}

/* hamburger menü */
.menu-wrap { position: relative; }
.hamburger {
    background: var(--bg2); border: 1px solid var(--border); color: var(--text);
    padding: 6px 13px; border-radius: 8px; cursor: pointer; font-size: 1.15em; line-height: 1;
}
.hamburger:hover { border-color: var(--accent2); }
.menu-dropdown {
    position: absolute; right: 0; top: calc(100% + 6px); background: var(--card);
    border: 1px solid var(--border); border-radius: 12px; padding: 6px; min-width: 190px;
    box-shadow: 0 14px 34px rgba(0,0,0,.55); display: none; z-index: 60;
}
.menu-dropdown.open { display: block; }
.menu-dropdown .md-item {
    display: block; width: 100%; text-align: left; background: none; border: none;
    color: var(--text); padding: 11px 13px; border-radius: 8px; cursor: pointer;
    text-decoration: none; font-size: .95em;
}
.menu-dropdown .md-item:hover { background: var(--bg2); }
.menu-dropdown .md-item b { color: var(--text); }

/* értesítés-harang */
.bell-btn {
    position: relative; background: var(--bg2); border: 1px solid var(--border); color: var(--text);
    padding: 6px 11px; border-radius: 8px; cursor: pointer; font-size: 1.05em; line-height: 1;
}
.bell-btn:hover { border-color: var(--accent2); }
.bell-badge {
    position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff;
    font-size: .62em; font-weight: 800; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.notif-dd { min-width: 290px; max-width: 330px; max-height: 400px; overflow-y: auto; padding: 4px; }
.notif-item { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg2); }
.notif-item.unread { background: rgba(124,107,255,.1); }
.notif-text { font-size: .9em; line-height: 1.3; }
.notif-time { font-size: .74em; color: var(--muted); margin-top: 3px; }

/* komment-törlés + moderálás */
.c { position: relative; }
.c .cdel {
    background: none; border: none; color: var(--muted); cursor: pointer;
    font-size: .9em; margin-left: 6px; opacity: .6;
}
.c .cdel:hover { opacity: 1; color: #f87171; }
.ctext { margin-top: 4px; }
.spoiler { background: #2c3050; color: transparent; border-radius: 4px; padding: 0 4px; cursor: pointer; user-select: none; box-shadow: inset 0 0 0 1px var(--border); }
.spoiler::after { content: ' 🙈'; }
.spoiler.reveal { background: rgba(124,107,255,.16); color: var(--text); cursor: default; }
.spoiler.reveal::after { content: ''; }
.cform-hint { font-size: .76em; color: var(--muted); margin-top: 6px; }
.cactions { margin-top: 5px; }
.creply-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .82em; padding: 2px 4px; }
.creply-btn:hover { color: var(--accent2); }
.reply-form { display: flex; gap: 6px; margin-top: 8px; }
.reply-form input { flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 10px; font-size: .88em; outline: none; }
.reply-form button { background: var(--accent2); border: none; border-radius: 8px; color: #fff; padding: 8px 14px; cursor: pointer; }
.replies { margin: 10px 0 0 16px; padding-left: 12px; border-left: 2px solid var(--border); }
.c.reply { margin-bottom: 10px; }
/* reakciók */
.react-bar { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.rx {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 999px;
    padding: 2px 9px; font-size: .82em; cursor: pointer; user-select: none;
}
.rx:hover { border-color: var(--accent2); }
.rx.mine { background: rgba(124,107,255,.15); border-color: var(--accent2); }
.rx-add { position: relative; cursor: pointer; color: var(--muted); font-weight: 700; padding: 2px 7px; border: 1px solid var(--border); border-radius: 999px; font-size: .82em; }
.rx-add:hover { color: var(--text); }
.rx-add:hover .rx-picker, .rx-picker:hover, .rx-add.open .rx-picker { display: flex; }
.rx-picker {
    display: none; position: absolute; bottom: 130%; left: 0; gap: 4px;
    background: var(--card); border: 1px solid var(--border); border-radius: 10px;
    padding: 6px 8px; box-shadow: 0 8px 22px rgba(0,0,0,.45); z-index: 20;
}
.rx-pick { font-size: 1.2em; cursor: pointer; padding: 2px; }
.rx-pick:hover { transform: scale(1.25); }

/* "végignéztem" gomb a lejátszó alatt */
.finish-watch {
    display: inline-flex; align-items: center; gap: 7px; margin: 8px 0 2px;
    padding: 9px 16px; border-radius: 10px; border: 1px solid var(--green);
    background: rgba(74,222,128,.1); color: var(--green); cursor: pointer; font-size: .9em; font-weight: 600;
}
.finish-watch:hover { background: rgba(74,222,128,.2); }
.finish-watch.done { border-color: var(--border); background: var(--bg2); color: var(--muted); cursor: default; }
.player-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.next-btn {
    display: inline-flex; align-items: center; gap: 7px; margin: 8px 0 2px;
    padding: 9px 16px; border-radius: 10px; border: 1px solid var(--accent2);
    background: rgba(124,107,255,.1); color: var(--accent2); cursor: pointer; font-size: .9em; font-weight: 600;
}
.next-btn:hover { background: var(--accent2); color: #fff; }

/* külső forrás-linkek a részlista alatt */
.ext-sources { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.ext-title { font-size: .82em; color: var(--muted); margin-bottom: 8px; }
.ext-link {
    display: inline-block; margin: 0 6px 6px 0; padding: 7px 12px; border-radius: 8px;
    background: var(--bg2); border: 1px solid var(--border); color: var(--text);
    text-decoration: none; font-size: .88em;
}
.ext-link:hover { border-color: var(--accent2); }
.ext-note { font-size: .74em; color: var(--muted); opacity: .7; margin-top: 4px; line-height: 1.4; }

/* lejátszó-felirat: hanyadik rész + halvány teljes cím */
.now-playing { margin: 10px 0 4px; position: relative; padding-right: 90px; }
.np-ep { font-size: 1.15em; font-weight: 700; color: var(--text); }
.np-title { font-size: .82em; color: var(--muted); opacity: .75; margin-top: 2px; }
.side-title { font-size: 1.1em; margin-bottom: 12px; flex: 0 0 auto; }
.ep-count {
    color: var(--gold); font-size: .8em; font-weight: 600;
    background: rgba(251,191,36,.1); border: 1px solid var(--gold);
    padding: 2px 9px; border-radius: 999px; margin-left: 4px;
}
.ep-count:empty { display: none; }
.ep-list { overflow-y: auto; flex: 1 1 auto; margin: 0 -6px; padding: 0 6px; }
.ep-row { cursor: pointer; }
.ep-row:hover { border-color: var(--accent2); background: var(--card-hover); }
.ep-row.playing { border-color: var(--accent); background: rgba(255,107,157,.08); }
.ep-play {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: .68em;
}
.ep-del { flex: 0 0 auto; }
.ep-row { position: relative; }
.ep-row.viewed { background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.35); }
.ep-row.viewed:hover { background: rgba(74,222,128,.16); }
.ep-prog { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); border-radius: 0 2px 2px 0; }
.player-poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.player-poster .play-hint {
    position: absolute; color: var(--text); font-weight: 600;
    background: rgba(13,14,26,.72); padding: 10px 18px; border-radius: 10px; text-align: center;
}
/* watch-party: vendég csatlakozás-overlay (autoplay-feloldás) */
.join-overlay { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.btn-join {
    padding: 14px 24px; font-size: 1.05em; font-weight: 700; color: #fff; cursor: pointer;
    border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.btn-join:hover { filter: brightness(1.08); }
.qual-btn {
    position: absolute; top: 0; right: 0; padding: 4px 10px; font-size: .8em; font-weight: 600;
    color: var(--text); background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.qual-btn:hover { border-color: var(--accent); }
.muteki-search {
    width: 100%; max-width: 480px; margin: 0 0 14px; padding: 10px 14px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 1em;
}
.muteki-search:focus { outline: none; border-color: var(--accent); }

/* ── saját videólejátszó (player.js) — lilás hangulat ── */
.cp { position: relative; width: 100%; height: 100%; background: #07060d; overflow: hidden; outline: none; }
.cp:fullscreen { width: 100vw; height: 100vh; }
.cp-video { width: 100%; height: 100%; display: block; background: #07060d; object-fit: contain; transition: filter .4s ease; }
.cp.cp-hide-ui { cursor: none; }
.cp-gradient { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(transparent, rgba(26,18,48,.85)); pointer-events: none; opacity: 1; transition: opacity .2s; }
.cp.cp-hide-ui .cp-gradient { opacity: 0; }
.cp-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cp-bigplay { pointer-events: auto; width: 74px; height: 74px; border-radius: 50%; border: 0; background: rgba(124,107,255,.32); color: #fff; font-size: 1.7em; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s, background .15s; backdrop-filter: blur(3px); }
.cp-bigplay:hover { background: var(--accent2); transform: scale(1.08); box-shadow: 0 0 26px rgba(124,107,255,.6); }
.cp-spin { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 4px solid rgba(124,107,255,.25); border-top-color: var(--accent2); border-radius: 50%; animation: cpspin .8s linear infinite; pointer-events: none; }
@keyframes cpspin { to { transform: rotate(360deg); } }
.cp-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 10px 8px; transition: opacity .2s, transform .2s; z-index: 5; }
.cp.cp-hide-ui .cp-controls { opacity: 0; transform: translateY(8px); pointer-events: none; }
.cp-seek { position: relative; padding: 8px 0; cursor: pointer; touch-action: none; }
.cp-seek-track { position: relative; height: 5px; background: rgba(255,255,255,.22); border-radius: 3px; transition: height .12s; }
.cp-buffered { position: absolute; left: 0; top: 0; height: 100%; background: rgba(180,160,255,.4); border-radius: 3px; width: 0; }
.cp-played { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, var(--accent2), #a78bfa); border-radius: 3px; width: 0; box-shadow: 0 0 8px rgba(124,107,255,.7); }
.cp-thumb { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6px 0 0 -6px; background: #c4b5fd; border-radius: 50%; left: 0; transform: scale(0); transition: transform .12s; box-shadow: 0 0 8px var(--accent2); }
.cp-seek:hover .cp-thumb { transform: scale(1); }
.cp-seek:hover .cp-seek-track { height: 7px; }
.cp-seek-tip { position: absolute; bottom: 20px; transform: translateX(-50%); background: rgba(26,18,48,.92); color: #fff; font-size: .75em; padding: 2px 6px; border-radius: 4px; pointer-events: none; white-space: nowrap; border: 1px solid rgba(124,107,255,.4); }
.cp-row { display: flex; align-items: center; gap: 3px; color: #fff; }
.cp-btn { background: none; border: 0; color: #fff; cursor: pointer; font-size: 1.1em; padding: 5px 7px; border-radius: 6px; line-height: 1; }
.cp-btn:hover { background: rgba(124,107,255,.3); }
.cp-btn.cp-txt { font-size: .82em; font-weight: 700; min-width: 34px; }
.cp-btn.cp-on { color: #fff; background: var(--accent2); box-shadow: 0 0 12px rgba(124,107,255,.75); }
/* fényvédő beállító-panel (érzékenység + erősség) */
.cp-light-wrap { position: relative; display: inline-flex; align-items: center; }
.cp-light-pop { position: absolute; bottom: 100%; right: 0; margin-bottom: 10px; background: rgba(20,14,40,.97); border: 1px solid rgba(124,107,255,.45); border-radius: 12px; padding: 11px 13px; display: none; flex-direction: column; gap: 10px; width: 172px; z-index: 6; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
/* láthatatlan híd a gomb és a panel közt, hogy a kurzor át tudjon menni hover-vesztés nélkül */
.cp-light-pop::after { content: ""; position: absolute; top: 100%; left: -12px; right: -12px; height: 20px; }
.cp-light-wrap:hover .cp-light-pop, .cp-light-pop:hover { display: flex; }
.cp-light-pop-t { font-size: .74em; font-weight: 700; color: #c4b5fd; }
.cp-light-pop label { font-size: .68em; color: #cfcae6; display: block; }
.cp-light-pop label span { color: var(--accent2); font-weight: 700; float: right; }
.cp-light-pop input[type=range] { accent-color: var(--accent2); width: 100%; cursor: pointer; margin-top: 4px; display: block; }
.cp-light-chk { font-size: .68em; color: #cfcae6; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.cp-light-chk input { accent-color: var(--accent2); cursor: pointer; }
/* auto-next visszaszámláló */
.cp-autonext { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; background: rgba(7,6,13,.55); }
.cp-autonext[hidden] { display: none; }
.cp-an-box { background: rgba(20,14,40,.96); border: 1px solid rgba(124,107,255,.45); border-radius: 16px; padding: 20px 28px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.cp-an-label { color: #c4b5fd; font-size: .9em; font-weight: 600; }
.cp-an-count { color: #fff; font-size: 2.6em; font-weight: 800; margin: 4px 0 12px; line-height: 1; }
.cp-an-btns { display: flex; gap: 10px; justify-content: center; }
.cp-an-btns button { border: 0; border-radius: 9px; padding: 8px 16px; font-weight: 700; cursor: pointer; font-size: .9em; }
.cp-an-now { background: var(--accent2); color: #fff; }
.cp-an-now:hover { filter: brightness(1.1); }
.cp-an-cancel { background: rgba(255,255,255,.15); color: #fff; }
.cp-an-cancel:hover { background: rgba(255,255,255,.25); }
/* ▶ Folytatás-sor a főoldalon */
.cont-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; }
.cont-card { flex: 0 0 180px; text-decoration: none; color: var(--text); }
.cont-cover { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--bg2); }
.cont-cover img { width: 100%; height: 100%; object-fit: cover; }
.cont-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.9em; color: #fff; background: rgba(7,6,13,.3); opacity: 0; transition: opacity .15s; }
.cont-card:hover .cont-play { opacity: 1; }
.cont-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.55); }
.cont-bar div { height: 100%; background: var(--accent); }
.cont-title { font-weight: 600; font-size: .9em; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cont-ep { font-size: .8em; color: var(--muted); }
/* időbélyeges kommentek */
.ts-attach { font-size: .82em; color: var(--accent2); background: rgba(124,107,255,.12); border: 1px solid rgba(124,107,255,.3); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.ts-attach button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1em; margin-left: 6px; }
.ts-attach button:hover { color: var(--text); }
.ts-jump { background: rgba(124,107,255,.18); border: 1px solid rgba(124,107,255,.35); color: var(--accent2); border-radius: 6px; padding: 1px 7px; font-size: .82em; font-weight: 700; cursor: pointer; margin: 0 4px; }
.ts-jump:hover { background: var(--accent2); color: #fff; }
/* élő fény-kompresszor meter (csak fullscreen + bekapcsolt fényvédő) */
.cp-meter { position: absolute; right: 22px; top: 10%; height: 80%; width: 40px; display: none; flex-direction: column; align-items: center; gap: 7px; z-index: 3; pointer-events: none; }
.cp.cp-full.cp-lg.cp-meteron .cp-meter { display: flex; }
.cp-meter-label { font-size: .56em; color: #c4b5fd; letter-spacing: 1px; font-weight: 700; white-space: nowrap; text-shadow: 0 0 6px rgba(124,107,255,.6); }
.cp-meter-track { position: relative; flex: 1; width: 10px; background: rgba(10,8,20,.55); border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 5px rgba(0,0,0,.6), 0 0 0 1px rgba(124,107,255,.3); }
.cp-meter-grid { position: absolute; inset: 0; background-image: repeating-linear-gradient(to top, transparent 0, transparent 9%, rgba(255,255,255,.07) 9%, rgba(255,255,255,.07) 10%); }
.cp-meter-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0%; background: linear-gradient(to top, #4ade80 0%, #fbbf24 55%, #f87171 100%); border-radius: 6px; transition: height .1s ease-out; }
.cp-meter-peak { position: absolute; left: -2px; right: -2px; height: 2px; background: #fff; box-shadow: 0 0 6px #fff; bottom: 0%; transition: bottom .1s; }
.cp-meter-val { font-size: .62em; color: #fff; font-weight: 700; min-width: 34px; text-align: center; background: rgba(10,8,20,.6); border-radius: 5px; padding: 1px 0; }
.cp-time { font-size: .8em; color: #eee; margin: 0 6px; white-space: nowrap; }
.cp-spacer { flex: 1; }
.cp-vol { display: flex; align-items: center; }
.cp-vol-range { width: 0; opacity: 0; transition: width .2s, opacity .2s; cursor: pointer; accent-color: var(--accent2); vertical-align: middle; }
.cp-vol:hover .cp-vol-range, .cp-vol-range:focus { width: 70px; opacity: 1; margin-left: 2px; }
/* intro/ending átugrás gomb (Netflix-stílus, jobb alsó sarok a vezérlők felett) */
.cp-skip { position: absolute; right: 16px; bottom: 70px; z-index: 3; background: rgba(26,18,48,.85); color: #fff; border: 1px solid var(--accent2); border-radius: 10px; padding: 9px 16px; font-weight: 700; font-size: .9em; cursor: pointer; transition: background .15s, transform .15s; backdrop-filter: blur(4px); }
.cp-skip:hover { background: var(--accent2); transform: scale(1.04); }
.cp-skip[hidden] { display: none; }
/* pause-screen: logó + ajánlás */
.cp-pause { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at center, rgba(26,18,48,.72), rgba(7,6,13,.92)); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s; padding: 20px; text-align: center; }
.cp.cp-paused .cp-pause { opacity: 1; pointer-events: auto; }
.cp-pause-logo { height: 46px; filter: drop-shadow(0 0 14px rgba(124,107,255,.6)); }
.cp-reco { display: flex; align-items: center; gap: 14px; background: rgba(22,24,41,.85); border: 1px solid rgba(124,107,255,.35); border-radius: 14px; padding: 12px 16px; max-width: 420px; cursor: pointer; transition: border-color .15s, transform .15s; text-align: left; }
.cp-reco:hover { border-color: var(--accent2); transform: translateY(-2px); }
.cp-reco img { width: 64px; height: 90px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #161829; }
.cp-reco-info { min-width: 0; }
.cp-reco-label { font-size: .72em; color: var(--accent2); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.cp-reco-title { font-weight: 700; color: #fff; margin: 3px 0; overflow-wrap: anywhere; }
.cp-reco-tags { font-size: .78em; color: var(--muted); }
.cp-reco-cta { font-size: .8em; color: #c4b5fd; margin-top: 5px; }
@media (max-width: 600px) { .cp-hide-sm { display: none; } .cp-time { font-size: .72em; margin: 0 3px; } .cp-vol-range { display: none; } .cp-btn { padding: 5px 5px; } .cp-skip { bottom: 62px; right: 10px; padding: 7px 12px; font-size: .82em; } .cp-pause-logo { height: 34px; } .cp-reco img { width: 48px; height: 68px; } }
@media (max-width: 900px) {
    .watch-layout { flex-direction: column; }
    .watch-main { flex: 1 1 auto; width: 100%; }
    .watch-side { flex: 1 1 auto; width: 100%; max-width: none; max-height: none; }
}
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: var(--card); border: 1px solid var(--accent2); color: var(--text);
    padding: 12px 22px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
    opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 99;
}
.toast.show { opacity: 1; }
@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr 1fr; }
    .card .cover { height: 130px; }
    .detail .poster { flex: 0 0 100%; display: flex; justify-content: center; }
}

/* ---------- RESZPONZÍV FINOMHANGOLÁS (mobil + tablet) ---------- */
@media (max-width: 820px) {
    #app { padding: 14px 11px 50px; }
    header { margin-bottom: 16px; }
    header h1 { font-size: 1.35em; }
    .user-chip { gap: 7px; font-size: .9em; width: 100%; }
    .user-chip button, .user-chip a.navbtn { padding: 6px 11px; font-size: .9em; }
    .modal { padding: 18px 16px; }
    .page-head { gap: 8px; }
}
@media (max-width: 600px) {
    .sec { padding: 14px; }
    .detail h1.dtitle { font-size: 1.4em; }
    /* műveletgombok: egységes, sort kitöltő rács mobilon */
    .dactions { gap: 6px; }
    .dactions .btn-watch, .dactions .btn-wish, .dactions .rate-sel {
        flex: 1 1 42%; min-width: 0; padding: 9px 10px; font-size: .85em;
        justify-content: center; text-align: center;
    }
    .dactions .icon-btn { flex: 1 1 30%; min-width: 0; text-align: center; padding: 9px 8px; font-size: .85em; }
    .dscores { gap: 10px; font-size: .95em; flex-wrap: wrap; }
    .filters input { flex: 1 1 100%; min-width: 0; }
    .auth-box { padding: 28px 22px; }
    .ext-link { font-size: .82em; }
    .role-badge { font-size: .6em; padding: 1px 6px; }
}
@media (max-width: 430px) {
    .grid { grid-template-columns: 1fr; }
    .card .cover { height: 190px; }
    .user-chip { justify-content: flex-start; }
    header h1 { font-size: 1.2em; }
    .pod-name { font-size: .72em; }
}
