/* ==========================================================================
   TRENDKEZELŐ VIDEÓ PORTÁL - KÖZPONTI DESIGN RENDSZER
   Színvilág és esztétika: Brand Identity Engine 2.0 (preview.html) adaptáció
   ========================================================================== */

:root {
  /* Színpaletta a preview.html alapján */
  --brand-primary: #7C3AED;      /* Élénk lila / fókusz */
  --brand-secondary: #06B6D4;    /* Neon cián / akcentus */
  --brand-accent: #F59E0B;       /* Meleg borostyán / arany */
  --brand-accent-red: #F43F5E;   /* Crimson / kedvenc szív */
  --brand-bg: #0B0D12;           /* Mélysötét háttér */
  --brand-surface: #121620;      /* Kártya és panel háttér */
  --brand-surface-2: #181D29;    /* Kiemelt felület / hover */
  --brand-surface-glass: rgba(18, 22, 32, 0.85);
  --brand-text: #F5F7FB;         /* Főszöveg fehér */
  --brand-muted: #98A2B3;        /* Halvány másodlagos szöveg */
  --brand-border: #283044;       /* Finom határolóvonal */
  --brand-border-glow: rgba(6, 182, 212, 0.4);

  /* Tipográfia és térközök */
  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  --shadow-neon: 0 0 25px rgba(124, 58, 237, 0.35);
  --shadow-cyan: 0 0 25px rgba(6, 182, 212, 0.35);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Alap reset és görgetés */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--brand-bg);
  color: var(--brand-text);
  font: 14.5px/1.6 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Egyedi görgetősáv */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--brand-bg); }
::-webkit-scrollbar-thumb { background: #1f293d; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

button, input, textarea, select {
  font: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   GLOBÁLIS HIBAKEZELŐ SÁV (Mandatory Rule)
   ========================================================================== */
#global-error-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  color: #ffffff;
  padding: 11px 18px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#global-error-bar.show {
  transform: translateY(0);
}

/* ==========================================================================
   FELSŐ HEADER & NAVIGÁCIÓ (components/header.html)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--brand-bg) 92%, #fff 8%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo Lockup */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  box-shadow: var(--shadow-neon);
  transform: rotate(-3deg);
  transition: transform 0.2s ease;
}
.brand-logo-link:hover .brand-mark {
  transform: rotate(0deg) scale(1.05);
}
.brand-title {
  display: flex;
  flex-direction: column;
}
.brand-title b {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--brand-text);
  line-height: 1.1;
}
.brand-title b span {
  color: var(--brand-secondary);
}
.brand-title small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-muted);
  font-weight: 700;
}

/* Gyorskereső mező a headerben */
.header-search-wrap {
  flex: 1;
  max-width: 540px;
  position: relative;
}
.header-search-box {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 16px;
  transition: all 0.2s ease;
}
.header-search-box:focus-within {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
  background: var(--brand-surface-2);
}
.header-search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--brand-text);
  font-size: 13.5px;
  outline: none;
}
.header-search-input::placeholder {
  color: var(--brand-muted);
}
.header-search-btn {
  background: linear-gradient(135deg, var(--brand-primary), #6366f1);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.header-search-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.4);
}

/* Header Akciógombok */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-fav-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}
.btn-fav-header:hover {
  border-color: var(--brand-accent-red);
  background: rgba(244, 63, 94, 0.1);
  color: #fff;
}
.btn-fav-header .fav-badge-num {
  background: var(--brand-accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Felső Kategória Menüsáv */
.category-nav-bar {
  background: color-mix(in srgb, var(--brand-bg) 95%, #fff 5%);
  border-bottom: 1px solid var(--brand-border);
  padding: 8px 24px;
  overflow-x: auto;
  white-space: nowrap;
}
.category-nav-bar::-webkit-scrollbar { height: 4px; }
.category-nav-list {
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.cat-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  color: var(--brand-muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}
.cat-pill-link:hover {
  background: var(--brand-surface-2);
  color: var(--brand-text);
  border-color: var(--brand-secondary);
}
.cat-pill-link.active {
  background: linear-gradient(135deg, var(--brand-primary), #6366f1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.4);
}

/* ==========================================================================
   FŐOLDAL / KATEGÓRIA LISTÁZÓ (index.html)
   ========================================================================== */
.main-content-wrap {
  max-width: 1520px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  flex: 1;
  width: 100%;
}

/* Hero és Gyorsgombok Sáv */
.portal-hero {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid var(--brand-border);
  padding-bottom: 16px;
}
.hero-title-group h1 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--brand-text);
  margin-bottom: 4px;
}
.hero-title-group p {
  color: var(--brand-muted);
  font-size: 13.5px;
}

/* Kicsi Gyorsgombok (Pl legfrissebb trendvideók, sokan szerették) */
.quick-filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.quick-btn:hover {
  background: var(--brand-surface-2);
  color: var(--brand-text);
  border-color: var(--brand-secondary);
  transform: translateY(-1px);
}
.quick-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

/* ==========================================================================
   3 KÁRTYÁS VIDEÓ RÁCS (Kategória oldal & Főoldal specifikáció)
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 10px;
}

/* Egyedi Videó Kártya */
.video-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-secondary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.15);
}

/* Kártya Indexkép & Időtartam */
.card-thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  display: block;
}
.card-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .card-thumbnail-img {
  transform: scale(1.05);
}
.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 18, 0.45);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card-play-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow-neon);
  transform: scale(0.8);
  transition: transform 0.2s ease;
}
.video-card:hover .card-play-overlay {
  opacity: 1;
}
.video-card:hover .card-play-icon {
  transform: scale(1);
}
.card-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(7, 9, 14, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-hd-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(124, 58, 237, 0.85);
  color: #fff;
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* Kártya Tartalom (Cím, 2 soros bevezető) */
.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.card-category-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-secondary);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
}
.card-time {
  font-size: 11.5px;
  color: var(--brand-muted);
}
.card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-text);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 42px;
}
.video-card:hover .card-title {
  color: #67e8f9;
}

/* 2 SOROS BEVEZETŐ (Pontos felhasználói elvárás) */
.card-intro-2lines {
  font-size: 13px;
  color: var(--brand-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 14px;
  flex: 1;
}

/* Kártya Lábléc (Nézettség & Kedvenc Gomb) */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(40, 48, 68, 0.6);
  margin-top: auto;
}
.card-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.card-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--brand-border);
}
.card-author-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-views {
  font-size: 11.5px;
  color: var(--brand-muted);
  white-space: nowrap;
}
.card-fav-btn {
  color: var(--brand-muted);
  font-size: 16px;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  display: grid;
  place-items: center;
}
.card-fav-btn:hover, .card-fav-btn.active {
  color: var(--brand-accent-red);
  transform: scale(1.18);
}

/* ==========================================================================
   PAGE OLDAL: 3 OSZLOPOS LAYOUT (Bal Sidebar + Főoldal + Jobb Sidebar)
   ========================================================================== */
.watch-page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 340px;
  gap: 24px;
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  width: 100%;
}

/* Bal Oldali Sidebar */
.watch-sidebar-left {
  position: sticky;
  top: 90px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Középső Fő Tartalom (Videó, Cím, 2 soros bevezető, Teljes leírás, Címkék) */
.watch-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Jobb Oldali Sidebar */
.watch-sidebar-right {
  position: sticky;
  top: 90px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Videó Lejátszó Konténer (16:9 arány) */
.video-player-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--brand-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}
.video-player-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Videó Fejléc és Fő Cím */
.video-main-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 900;
  color: var(--brand-text);
  line-height: 1.25;
}

/* 2 SOROS KIEMELT BEVEZETŐ A PAGE OLDALON */
.page-lead-box {
  background: var(--brand-surface);
  border-left: 4px solid var(--brand-secondary);
  border-top: 1px solid var(--brand-border);
  border-right: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.55;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Meta Adatok és Akciógombok a videó alatt */
.video-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 16px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
}
.channel-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.channel-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-primary);
}
.channel-names b {
  font-size: 14.5px;
  color: var(--brand-text);
  display: block;
}
.channel-names small {
  color: var(--brand-muted);
  font-size: 11.5px;
}
.video-stats-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-action-pill:hover {
  border-color: var(--brand-secondary);
  background: rgba(6, 182, 212, 0.15);
}
.btn-action-pill.btn-fav-toggle.active {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--brand-accent-red);
  color: var(--brand-accent-red);
}

/* Teljes Leírás Doboz */
.video-full-desc-box {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 20px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}
.video-full-desc-box h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 800;
}
.video-full-desc-box p {
  margin-bottom: 12px;
}
.video-full-desc-box p:last-child {
  margin-bottom: 0;
}

/* Címkék (Tags) */
.video-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--brand-border);
}
.tag-chip {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}
.tag-chip:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   JOBB OLDALI SIDEBAR (KEDVENCEK GOMB + AJÁNLOTT VIDEÓK CÍM + KÉP)
   ========================================================================== */
.sidebar-panel {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

/* Felül lévő nagy Kedvencek gomb a jobb oldali sávban */
.btn-sidebar-fav-master {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-primary), #4f46e5);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-neon);
  transition: all 0.2s ease;
  margin-bottom: 18px;
  cursor: pointer;
}
.btn-sidebar-fav-master:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* Ajánlott Videók Lista (Cím + Kép minden elemnél) */
.sidebar-section-title {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.recommended-video-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rec-video-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--brand-surface-2);
  border: 1px solid rgba(40, 48, 68, 0.4);
  text-decoration: none;
  transition: all 0.2s ease;
}
.rec-video-item:hover {
  border-color: var(--brand-secondary);
  transform: translateX(4px);
  background: color-mix(in srgb, var(--brand-surface-2) 90%, #fff 10%);
}
.rec-video-thumb {
  width: 110px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
}
.rec-video-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rec-video-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-video-meta {
  font-size: 11px;
  color: var(--brand-muted);
}

/* Bal oldali sidebar navigáció */
.side-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.side-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.side-nav-item:hover, .side-nav-item.active {
  background: var(--brand-surface-2);
  color: var(--brand-text);
  border-left: 3px solid var(--brand-primary);
}

/* ==========================================================================
   BANNER1 ÉS BANNER2 KOMPONENSEK (Videó felett és alatt)
   ========================================================================== */
.banner-slot-box {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #0d121d, #141926);
  border: 1px solid var(--brand-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}
.banner-slot-box:hover {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}
.banner-slot-1-wrap {
  margin-bottom: 12px;
}
.banner-slot-2-wrap {
  margin-top: 12px;
  margin-bottom: 8px;
}
.banner-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  flex-wrap: wrap;
}
.banner-left-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.banner-tag-badge {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--brand-secondary);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  flex-shrink: 0;
}
.banner-text-details h4 {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.banner-text-details p {
  font-size: 12px;
  color: var(--brand-muted);
}
.banner-cta-button {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
  flex-shrink: 0;
  transition: all 0.2s;
}
.banner-slot-box:hover .banner-cta-button {
  transform: scale(1.05);
}

/* ==========================================================================
   LÁBLÉC (components/footer.html)
   ========================================================================== */
.main-footer {
  margin-top: auto;
  background: color-mix(in srgb, var(--brand-bg) 94%, #fff 6%);
  border-top: 1px solid var(--brand-border);
  padding: 40px 24px 25px;
  color: var(--brand-muted);
}
.footer-inner {
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-categories-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}
.footer-cat-link {
  font-size: 12.5px;
  color: var(--brand-muted);
  transition: color 0.15s;
}
.footer-cat-link:hover {
  color: var(--brand-secondary);
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--brand-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   TOAST ÉRTESÍTÉSEK
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-msg {
  pointer-events: auto;
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-secondary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toastIn {
  0% { opacity: 0; transform: translateY(14px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   RESPONZÍV MEGJELENÉS (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 1200px) {
  .watch-page-layout {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    gap: 16px;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .watch-page-layout {
    grid-template-columns: 1fr;
  }
  .watch-sidebar-left {
    display: none; /* Mobilon a felső menü veszi át a szerepét */
  }
  .watch-sidebar-right {
    position: static;
  }
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .header-inner {
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  .header-search-wrap {
    order: 3;
    max-width: 100%;
    margin-top: 6px;
  }
  .main-content-wrap {
    padding: 20px 14px 40px;
  }
  .watch-page-layout {
    padding: 14px 12px 40px;
  }
}
