/*
Theme Name: OTV Gaming
Theme URI: https://otv.com
Author: OTV Team
Author URI: https://otv.com
Description: OTV - Online TV Gaming Portal. A full-featured online gaming website with categories, search, and game browsing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: otv
Tags: gaming, entertainment, responsive
*/

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

:root {
  --bg-primary:    #0f0f1a;
  --bg-secondary:  #1a1a2e;
  --bg-card:       #1e1e32;
  --bg-card-hover: #252545;
  --accent:        #6c63ff;
  --accent-2:      #ff6584;
  --accent-glow:   rgba(108,99,255,0.35);
  --text-primary:  #f0f0ff;
  --text-secondary:#a0a0c0;
  --text-muted:    #606080;
  --border:        rgba(108,99,255,0.15);
  --sidebar-width: 220px;
  --header-height: 60px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-pill:   999px;
  --font-main:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display:  'Sora', 'Inter', sans-serif;
  --transition:    0.18s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
#otv-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.otv-body-inner {
  display: flex;
  flex: 1;
  padding-top: var(--header-height);
}

/* ============================================================
   HEADER
   ============================================================ */
#otv-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(15,15,26,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  z-index: 1000;
}

.otv-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.otv-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.otv-logo-text { color: var(--text-primary); }
.otv-logo-text span { color: var(--accent); }

/* Search Bar */
.otv-search-wrap {
  flex: 1;
  max-width: 560px;
  position: relative;
}

.otv-search-wrap form { display: flex; }

.otv-search-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 20px 9px 44px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.otv-search-input::placeholder { color: var(--text-muted); }
.otv-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.otv-search-icon {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}

.otv-search-btn {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--accent);
  border: none; border-radius: var(--radius-pill);
  color: #fff; font-size: 0.78rem; font-weight: 600;
  padding: 5px 14px; cursor: pointer;
  transition: opacity var(--transition);
}
.otv-search-btn:hover { opacity: 0.85; }

/* Header Actions */
.otv-header-actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; flex-shrink: 0;
}

.otv-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition);
}
.otv-btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.otv-btn-outline:hover { border-color: var(--accent); color: var(--text-primary); }

.otv-btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.otv-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }

.otv-mobile-menu-btn {
  display: none;
  background: none; border: none; color: var(--text-primary);
  font-size: 1.4rem; cursor: pointer; padding: 4px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#otv-sidebar {
  width: var(--sidebar-width);
  min-height: calc(100vh - var(--header-height));
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  flex-shrink: 0;
  padding: 12px 0 24px;
  transition: transform var(--transition);
}

.sidebar-section { margin-bottom: 8px; }

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 18px 6px;
}

.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  color: var(--text-secondary);
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; border-radius: 0;
  transition: all var(--transition);
  position: relative;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
  color: var(--text-primary);
  background: rgba(108,99,255,0.1);
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.sidebar-nav-item .nav-icon {
  width: 20px; text-align: center; font-size: 1.05rem; flex-shrink: 0;
}

.sidebar-nav-item .nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff; font-size: 0.65rem; font-weight: 700;
  padding: 2px 7px; border-radius: var(--radius-pill);
}

.sidebar-divider {
  height: 1px; background: var(--border); margin: 8px 18px;
}

/* Category icons in sidebar */
.cat-icon { font-size: 1rem; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
#otv-main {
  flex: 1;
  padding: 24px;
  overflow-x: hidden;
  min-width: 0;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}

.section-title .title-icon { font-size: 1.15rem; }

.section-link {
  font-size: 0.8rem; color: var(--accent); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.section-link:hover { gap: 8px; }

/* ============================================================
   GAME CARDS
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

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

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  border: 1px solid var(--border);
}

.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--accent);
}

.game-card-thumb {
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg-secondary);
  position: relative; overflow: hidden;
}

.game-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.game-card:hover .game-card-thumb img { transform: scale(1.06); }

.game-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card-hover));
}

.game-card-play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.game-card:hover .game-card-play-overlay { opacity: 1; }

.play-btn-circle {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: scale(0.8);
  transition: transform var(--transition);
}
.game-card:hover .play-btn-circle { transform: scale(1); }

.game-card-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent-2); color: #fff;
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--radius-pill);
}

.game-card-body {
  padding: 10px 12px;
}

.game-card-title {
  font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text-primary);
}

.game-card-meta {
  font-size: 0.72rem; color: var(--text-muted); margin-top: 3px;
  display: flex; align-items: center; gap: 6px;
}

.game-card-rating {
  display: flex; align-items: center; gap: 3px; color: #f59e0b;
}

/* ============================================================
   HERO / FEATURED BANNER
   ============================================================ */
.otv-hero {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1a1a3e 0%, #0f0f26 60%, #1a0a2e 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  min-height: 200px;
  display: flex; align-items: center;
  padding: 32px 36px;
}

.otv-hero-bg-shapes {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}

.otv-hero-bg-shapes span {
  position: absolute; border-radius: 50%;
  background: var(--accent); opacity: 0.06;
}
.otv-hero-bg-shapes span:nth-child(1) { width: 300px; height: 300px; right: -80px; top: -80px; }
.otv-hero-bg-shapes span:nth-child(2) { width: 180px; height: 180px; right: 140px; bottom: -60px; background: var(--accent-2); }
.otv-hero-bg-shapes span:nth-child(3) { width: 100px; height: 100px; left: 40%; top: 20%; }

.otv-hero-content { position: relative; z-index: 1; max-width: 480px; }

.otv-hero-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}

.otv-hero-title {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 12px;
}

.otv-hero-title span { color: var(--accent); }

.otv-hero-desc {
  color: var(--text-secondary); font-size: 0.9rem;
  margin-bottom: 20px; max-width: 360px;
}

.otv-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.otv-hero-stats {
  position: absolute; right: 36px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px;
  z-index: 1;
}

.hero-stat {
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 20px;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800; color: var(--accent);
  line-height: 1;
}
.hero-stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   CATEGORY PILLS ROW
   ============================================================ */
.category-pills {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  margin-bottom: 24px; scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }

.category-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: all var(--transition);
}

.category-pill:hover,
.category-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pill-icon { font-size: 0.95rem; }

/* ============================================================
   CATEGORY CARDS GRID (big icons)
   ============================================================ */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 12px 14px;
  text-align: center; cursor: pointer;
  transition: all var(--transition);
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.cat-card-icon {
  font-size: 2rem; margin-bottom: 8px;
  display: block;
}

.cat-card-name {
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-secondary);
}

.category-card:hover .cat-card-name { color: var(--text-primary); }

/* ============================================================
   FEATURED / HIGHLIGHT ROW
   ============================================================ */
.featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 32px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 160px;
  display: flex; align-items: flex-end;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.featured-card-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; opacity: 0.25;
}

.featured-card-body {
  position: relative; z-index: 1;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  width: 100%;
}

.featured-card-tag {
  display: inline-block; margin-bottom: 6px;
  background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--radius-pill);
}

.featured-card-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 4px;
}

.featured-card-meta { font-size: 0.75rem; color: var(--text-secondary); }

/* ============================================================
   TAGS / TRENDING
   ============================================================ */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.tag-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  font-size: 0.78rem; color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition);
}
.tag-chip:hover { border-color: var(--accent); color: var(--text-primary); }

/* ============================================================
   FOOTER
   ============================================================ */
#otv-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 32px 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: 1100px; margin: 0 auto 36px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; }

.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px; height: 36px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer;
  transition: all var(--transition);
}
.footer-social-btn:hover { background: var(--accent); border-color: var(--accent); }

.footer-col-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px;
}

.footer-nav-list { display: flex; flex-direction: column; gap: 9px; }
.footer-nav-list a { font-size: 0.85rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-nav-list a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px; max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 0.78rem; color: var(--text-muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--text-primary); }

/* ============================================================
   SINGLE GAME PAGE
   ============================================================ */
.game-single-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.game-embed-area {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}

.game-embed-area iframe { width: 100%; height: 100%; border: none; }

.game-placeholder-screen {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; background: var(--bg-secondary);
  font-size: 4rem;
}

.game-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}

.game-info-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800; margin-bottom: 8px;
}

.game-info-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.game-info-cat-badge {
  background: rgba(108,99,255,0.15);
  border: 1px solid var(--accent);
  color: var(--accent); font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-pill);
}

.game-info-desc {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px;
}

.game-info-actions { display: flex; flex-direction: column; gap: 8px; }

.game-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px; border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none;
  transition: all var(--transition);
}

.game-play-btn {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff; font-size: 0.95rem; padding: 14px;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.game-play-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }

.game-fav-btn {
  background: var(--bg-secondary); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.game-fav-btn:hover { border-color: var(--accent-2); color: var(--accent-2); }

.game-stats-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-top: 16px;
}

.game-stat-item {
  background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 10px 12px; text-align: center;
}
.game-stat-value { font-size: 1rem; font-weight: 700; color: var(--accent); }
.game-stat-label { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-header { margin-bottom: 24px; }
.search-header h1 { font-size: 1.4rem; font-weight: 700; }
.search-count { color: var(--text-muted); font-size: 0.875rem; margin-top: 4px; }

.search-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}

.search-filter-btn {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); padding: 7px 16px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition);
}
.search-filter-btn.active,
.search-filter-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-hero {
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  margin-bottom: 24px;
  position: relative; overflow: hidden;
}

.category-hero-icon { font-size: 3.5rem; margin-bottom: 10px; display: block; }
.category-hero-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.category-hero-desc { color: var(--text-secondary); font-size: 0.875rem; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.otv-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px;
}
.otv-breadcrumb a { color: var(--accent); }
.otv-breadcrumb span { color: var(--text-muted); }

/* ============================================================
   LOAD MORE
   ============================================================ */
.load-more-wrap { text-align: center; margin-top: 8px; margin-bottom: 32px; }
.load-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); padding: 11px 28px;
  font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition);
}
.load-more-btn:hover { border-color: var(--accent); color: var(--text-primary); }

/* ============================================================
   NOTIFICATION TOAST
   ============================================================ */
.otv-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--bg-card); border: 1px solid var(--accent);
  border-radius: var(--radius-md); padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; font-weight: 500;
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
}
.otv-toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   OVERLAY / MOBILE NAV
   ============================================================ */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 900;
  backdrop-filter: blur(2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --sidebar-width: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .otv-hero-stats { display: none; }
  .game-single-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 240px; }

  .otv-mobile-menu-btn { display: flex; }
  .otv-header-actions .otv-btn { display: none; }

  #otv-sidebar {
    position: fixed; left: 0; top: var(--header-height);
    z-index: 950; height: calc(100vh - var(--header-height));
    transform: translateX(-100%);
  }
  #otv-sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,0.5);
  }
  .sidebar-overlay.show { display: block; }

  #otv-main { padding: 16px; }
  .otv-hero { padding: 20px; min-height: 160px; }
  .otv-hero-title { font-size: 1.4rem; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .featured-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .otv-logo-text { display: none; }
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .category-cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   UTILITY
   ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-accent { color: var(--accent); }
.mt-4 { margin-top: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
