:root {
    --bg:        #0a0a0a;
    --bg-panel:  #131313;
    --bg-raised: #1a1a1a;
    --line:      #262626;
    --red:       #e6202f;
    --red-dim:   #7a121c;
    --text:      #f2f2f2;
    --text-dim:  #a8a8a8;
    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 6px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Nyelvváltó / language switch ----------
 * Natív HTML <details>/<summary> elem: a nyitás/zárás a böngésző saját,
 * beépített funkciója, semmilyen JavaScript nem szükséges hozzá.
 */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 20;
}
.lang-switch__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.lang-switch__toggle::-webkit-details-marker { display: none; }
.lang-switch__toggle::marker { content: ''; }
.lang-switch:hover .lang-switch__toggle,
.lang-switch[open] .lang-switch__toggle { border-color: var(--red-dim); }
.flag { font-size: 1rem; line-height: 1; }
.lang-switch__menu {
    list-style: none;
    margin: 6px 0 0;
    padding: 6px;
    position: absolute;
    right: 0;
    min-width: 140px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}
.lang-switch__menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}
.lang-switch__menu li a:hover { background: rgba(230,32,47,0.15); color: var(--red); }

/* ---------- Header / hero ---------- */
.site-header {
    position: relative;
    padding: 56px 48px 24px;
}
.hero {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 780px;
}
.hero__logo { width: 128px; height: 128px; flex-shrink: 0; }
.hero__text p {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    line-height: 1.35;
}
.hero__typed { color: var(--red); }
.hero__typed::after {
    content: '|';
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.topnav {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
}
.topnav a { padding: 4px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.topnav a:hover { color: var(--red); border-color: var(--red); }
.topnav__rule {
    margin-top: 20px;
    border: none;
    border-top: 1px solid var(--line);
    width: 100%;
}

/* ---------- Tab bar ---------- */
.platforms { padding: 0 48px 64px; }

.tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
}
.tabbar__btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 10px 16px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
}
.tabbar__btn svg { width: 18px; height: 18px; fill: currentColor; }
.tabbar__btn:hover { color: var(--text); }
.tabbar__btn.is-active { color: var(--red); border-color: var(--red); }
.tabbar__live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    display: none;
}
.tabbar__live-dot.is-live {
    display: inline-block;
    background: var(--red);
    box-shadow: 0 0 0 0 rgba(230,32,47,.7);
    animation: pulse 1.8s infinite;
}
.tabbar__live-dot.is-offline {
    display: inline-block;
    background: #5a5a5a;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(230,32,47,.6); }
    70%  { box-shadow: 0 0 0 7px rgba(230,32,47,0); }
    100% { box-shadow: 0 0 0 0 rgba(230,32,47,0); }
}

/* ---------- Panels ---------- */
.tab-panels { position: relative; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.panel-box {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.panel-box--narrow { max-width: 560px; }

.panel-note {
    margin: 14px 4px 0;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.panel-note a { color: var(--red); }

.panel-loading {
    color: var(--text-dim);
    font-size: 0.85rem;
    padding: 20px 4px;
}

.fb-page-iframe { display: block; }

/* ---------- Menetrend eseménylista ---------- */
.schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.schedule-item {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    background: var(--bg-panel);
    align-items: flex-start;
}
.schedule-item__date {
    flex: 0 0 auto;
    min-width: 140px;
    display: flex;
    flex-direction: column;
}
.schedule-item__day {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}
.schedule-item__time {
    color: var(--red);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 2px;
}
.schedule-item__title {
    margin: 0;
    font-size: 1rem;
}
.schedule-item__title a { color: var(--text); }
.schedule-item__title a:hover { color: var(--red); }
.schedule-item__location {
    margin: 4px 0 0;
    color: var(--text-dim);
    font-size: 0.85rem;
}

@media (max-width: 560px) {
    .schedule-item { flex-direction: column; gap: 6px; }
    .schedule-item__date { min-width: 0; flex-direction: row; gap: 10px; }
}


/* ---------- Élő/offline jelvény ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: .04em;
}
.status-badge__dot { width: 7px; height: 7px; border-radius: 50%; }
.status-badge.is-live {
    background: rgba(230,32,47,0.12);
    color: var(--red);
    border: 1px solid rgba(230,32,47,0.4);
}
.status-badge.is-live .status-badge__dot {
    background: var(--red);
    animation: pulse 1.8s infinite;
}
.status-badge.is-offline {
    background: rgba(255,255,255,0.04);
    color: var(--text-dim);
    border: 1px solid var(--line);
}
.status-badge.is-offline .status-badge__dot { background: #5a5a5a; }

/* ---------- Twitch layout ---------- */
.twitch-embed {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 480px;
}
.twitch-embed__player, .twitch-embed__chat { background: var(--bg-panel); }
.twitch-embed__player iframe, .twitch-embed__chat iframe {
    width: 100%; height: 480px; border: none; display: block;
}

/* ---------- Video frame (YouTube live) ---------- */
.video-frame { position: relative; padding-top: 56.25%; }
.video-frame iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: none;
    border-radius: var(--radius);
}

/* ---------- Calendar frame ---------- */
.calendar-frame { position: relative; padding-top: 65%; }
.calendar-frame iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: none;
    border-radius: var(--radius);
}

/* ---------- Video / photo grids ---------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.video-grid--square { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.video-tile { display: block; }
.video-tile__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-raised);
    border-radius: var(--radius);
    overflow: hidden;
}
.video-tile__thumb--square { aspect-ratio: 1 / 1; }
.video-tile__play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity .15s;
}
.video-tile:hover .video-tile__play { opacity: 1; }
.video-tile__title {
    margin: 8px 2px 0;
    font-size: 0.85rem;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Empty states ---------- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-dim);
}
.empty-state h3 {
    font-family: var(--font-display);
    color: var(--text);
    margin: 0 0 8px;
}
.btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 600;
}
.btn--outline {
    border: 1px solid var(--red);
    color: var(--red);
}
.btn--outline:hover { background: var(--red); color: #fff; }

/* ---------- Twitch OFFLINE style card (kept for visual parity) --- */
.twitch-offline-card {
    max-width: 320px;
    background: #fff;
    color: #111;
    border-radius: 6px;
    padding: 16px;
}
.twitch-offline-card .status { color: var(--red); font-weight: 700; font-size: 0.75rem; letter-spacing: .04em; }
.twitch-offline-card h4 { margin: 6px 0 4px; font-size: 1.05rem; }
.twitch-offline-card p { margin: 0 0 10px; font-size: 0.9rem; }
.twitch-offline-card a { color: #6441a5; font-size: 0.85rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 28px 24px 40px;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.site-footer .accent { color: var(--red); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .site-header { padding: 72px 20px 20px; }
    .platforms { padding: 0 20px 48px; }
    .hero { flex-direction: column; align-items: flex-start; gap: 16px; }
    .hero__logo { width: 88px; height: 88px; }
    .twitch-embed { grid-template-columns: 1fr; }
    .twitch-embed__chat iframe { height: 320px; }
}
