/* premium.css — Complete Enhanced Theme for Ukti Net */

/* Fonts (preloaded in header) */
:root {
  --bg: #ffffff;
  --panel: #f8f9fb;
  --muted: #65707a;
  --text: #0f1720;
  --accent: #0a84ff;
  --accent-hover: #0071e3;
  --glass: rgba(255, 255, 255, 0.85);
  --radius: 12px;
  --card-radius: 10px;
  --shadow-sm: 0 4px 14px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 28px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, 0.12);
  --transition: 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --container: 1200px;
  --max-card-width: 220px;
  
  /* Advanced Header Variables */
  --header-height: 70px;
  --header-height-mobile: 60px;
  --nav-height: 56px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --primary: #0a84ff;
  --primary-dark: #0071e3;
  --border-light: #eef2f6;
  --bg-light: #f8f9fb;
}

/* Base */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}

/* ==========================================================================
   ENHANCED HEADER STYLES
   ========================================================================== */

/* Enhanced Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: var(--safe-area-top);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.02);
}

.site-logo img {
  height: 36px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
}

/* Enhanced Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--panel);
  border-radius: 16px;
  padding: 6px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav a {
  padding: 10px 18px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: rgba(10, 132, 255, 0.05);
  transform: translateY(-1px);
}

.nav a.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
  font-weight: 600;
}

.nav a.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Menu Toggle - Enhanced */
.menu-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
}

.menu-toggle:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Advanced Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--panel);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 100px;
  padding-bottom: calc(80px + var(--safe-area-bottom));
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  border-radius: 14px;
  transition: all 0.3s ease;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--primary);
  color: white;
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.mobile-nav a i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

/* Bottom Navigation - Mobile Only */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  z-index: 1000;
  padding: 8px 12px;
  padding-bottom: calc(8px + var(--safe-area-bottom));
  display: none;
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 12px;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 80px;
}

.nav-item.active {
  color: var(--primary);
  background: rgba(10, 132, 255, 0.1);
  transform: translateY(-2px);
}

.nav-item i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.nav-item.active i {
  transform: scale(1.1);
}

.nav-item span {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ==========================================================================
   EXISTING PREMIUM.CSS STYLES (UNCHANGED)
   ========================================================================== */

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px;
}

/* Top Controls Area */
.top-controls {
  margin-top: var(--header-height);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: var(--header-height);
  z-index: 100;
}

.controls-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px;
}

/* Search */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 720px;
  background: var(--panel);
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
}

.search input::placeholder {
  color: var(--muted);
}

.search .icon {
  color: var(--muted);
  font-size: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn:hover {
  background: #eef2f6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border: 0;
  box-shadow: 0 6px 18px rgba(10, 132, 255, 0.16);
}

.btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.24);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border-light);
}

.btn.ghost:hover {
  background: var(--panel);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
  padding: 20px;
  max-width: var(--container);
  margin: 16px auto;
}

.card {
  background: linear-gradient(180deg, #fff, #fbfcfd);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid #f0f4f8;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #e0e8f0;
}

.card .logo-wrap {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  overflow: hidden;
}

.card img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.card .title {
  margin-top: 12px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.3;
}

.card .meta {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Shimmer placeholder */
.shimmer {
  height: 190px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f4f6f8 25%, #eceff2 50%, #f4f6f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}



.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error message */
.error-message {
  display: none;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border-radius: 10px;
}

.error-message.show {
  display: block;
}

.error-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

/* Channel info */
.channel-info {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap;
}

.channel-details {
  display: flex;
  gap: 14px;
  align-items: center;
}

.channel-logo {
  height: 72px;
  width: 72px;
  border-radius: 10px;
  border: 1px solid #eef4f8;
  background: #fff;
  padding: 6px;
  object-fit: contain;
}

.channel-title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

.channel-category {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Navigation controls */
.nav-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hide-mobile {
  display: inline;
}

.show-mobile {
  display: none;
}

/* Keyboard shortcuts hint */
.shortcuts-hint {
  margin-top: 20px;
  padding: 14px;
  background: linear-gradient(135deg, #f8f9fb 0%, #eef2f6 100%);
  border-radius: 10px;
  font-size: 0.87rem;
  color: var(--muted);
  text-align: center;
  border: 1px solid #e8ecf0;
}

.shortcuts-hint strong {
  color: var(--text);
  font-weight: 600;
}

/* Related channels */
.related-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.related-title {
  margin: 0 0 16px 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 transparent;
}

.related-row::-webkit-scrollbar {
  height: 8px;
}

.related-row::-webkit-scrollbar-track {
  background: transparent;
}

.related-row::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.related-row::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.related-item {
  min-width: 170px;
  flex: 0 0 170px;
  transition: transform 0.2s;
}

.related-item:hover {
  transform: scale(1.05);
}

/* ===== FOOTER RESPONSIVE IMPROVEMENTS ===== */

/* Main Footer Container */
.site-footer {
  background: linear-gradient(135deg, var(--footer-bg) 0%, var(--footer-bg-dark) 100%);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
  position: relative;
  overflow: hidden;
}

/* Dark Theme */
[data-theme="dark"] .site-footer {
  --footer-bg: #1a1a1a;
  --footer-bg-dark: #0d0d0d;
  --footer-text: #e0e0e0;
  --footer-text-muted: #999;
  --footer-heading: #ffffff;
  --footer-border: #333;
  --footer-card-bg: #2a2a2a;
}

/* Footer Inner Grid - MOBILE FIRST APPROACH */
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Brand Section - Mobile Optimized */
.footer-brand {
  text-align: center;
  padding: 1rem 0;
}

.brand-info {
  margin-bottom: 1.5rem;
}

/* Navigation Sections - Mobile Cards */
.footer-section {
  background: var(--footer-card-bg);
  border: 1px solid var(--footer-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
}

.footer-section:active {
  transform: scale(0.98);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--footer-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

/* Mobile Accordion Arrows */
.footer-title::after {
  content: '⌄';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--footer-text-muted);
}

.footer-section.active .footer-title::after {
  transform: rotate(180deg);
}

/* Navigation Links - Mobile Friendly */
.footer-nav {
  display: grid;
  gap: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.footer-section.active .footer-nav {
  max-height: 500px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--footer-text);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid transparent;
}

.footer-link:hover,
.footer-link:active {
  background: rgba(10, 132, 255, 0.1);
  color: var(--primary, #0a84ff);
  border-color: rgba(10, 132, 255, 0.2);
  transform: translateX(8px);
}

/* Footer Bottom - Mobile Stack */
.footer-bottom {
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg-dark);
  padding: 1.5rem 1rem;
  margin-top: 1rem;
}

.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Stats Section - Mobile Grid */
.footer-stats {
  width: 100%;
}

.stat-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem;
  background: var(--footer-card-bg);
  border: 1px solid var(--footer-border);
  border-radius: 12px;
  gap: 0.5rem;
}

.stat-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient, linear-gradient(135deg, #0a84ff, #0071e3));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--footer-heading);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--footer-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Server Status - Mobile */
.server-status {
  width: 100%;
  display: flex;
  justify-content: left;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--footer-card-bg);
  border: 1px solid var(--footer-border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--footer-text-muted);
}

/* Social Links - Mobile Center */
.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Tech Stack - Mobile Wrap */
.tech-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-item {
  background: var(--footer-card-bg);
  color: var(--footer-text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--footer-border);
}

/* ===== TABLET BREAKPOINT (768px) ===== */
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 1.5rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .brand-info {
    margin-bottom: 0;
  }
  
  .footer-section {
    background: transparent;
    border: none;
    padding: 0;
  }
  
  .footer-title {
    cursor: default;
    justify-content: flex-start;
  }
  
  .footer-title::after {
    display: none;
  }
  
  .footer-nav {
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
  
  .footer-bottom-left {
    align-items: flex-start;
  }
  
  .footer-stats {
    width: auto;
  }
  
  .stat-group {
    display: flex;
    gap: 1.5rem;
  }
  
  .stat {
    flex-direction: row;
    text-align: left;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  
  .social-links {
    justify-content: flex-start;
    margin-top: 0;
  }
  
  .tech-stack {
    justify-content: flex-start;
  }
}

/* ===== DESKTOP BREAKPOINT (1024px) ===== */
@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: 1;
  }
  
  .stat-group {
    gap: 2rem;
  }
}

/* ===== LARGE DESKTOP BREAKPOINT (1200px) ===== */
@media (min-width: 1200px) {
  .footer-inner {
    padding: 3rem 2rem 1.5rem;
  }
}

/* ===== ENHANCED MOBILE INTERACTIONS ===== */
@media (max-width: 767px) {
  /* Touch-friendly tap targets */
  .footer-link {
    min-height: 44px;
  }
  
  .social-link {
    min-width: 44px;
    min-height: 44px;
  }
  
  .quick-action-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Hide some elements on mobile for cleaner look */
  .logo-fallback {
    display: none;
  }
  
  .brand-tagline {
    font-size: 0.85rem;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .footer-section,
  .footer-link,
  .footer-nav {
    transition: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .footer-section {
    border-width: 2px;
  }
  
  .footer-link {
    border-width: 1px;
  }
}

/* ===== FLOATING CONTROLS MOBILE OPTIMIZATION ===== */
@media (max-width: 767px) {
  .back-to-top {
    bottom: 80px;
    right: 15px;
    width: 44px;
    height: 44px;
  }
  
  .quick-actions-menu {
    bottom: 140px;
    left: 15px;
    gap: 0.5rem;
  }
  
  .quick-action-btn {
    width: 44px;
    height: 44px;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  .footer-inner {
    padding: 1.5rem 0.75rem;
  }
  
  .footer-section {
    padding: 1rem;
  }
  
  .stat-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .stat {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
}

/* ==========================================================================
   UTILITIES & RESPONSIVE STYLES
   ========================================================================== */

/* Utilities */
.center {
  text-align: center;
}

.hidden {
  display: none;
}

/* Animation for page content */
.main-content {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state */
.loading .site-header {
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .container {
    padding: 10px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 16px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .nav {
    gap: 2px;
  }
  
  .nav a {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  .header-inner {
    padding: 0 16px;
  }
  
  .site-logo img {
    height: 32px;
  }
  
  .nav {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .bottom-nav {
    display: block;
  }
  
  .top-controls {
    margin-top: var(--header-height);
    top: var(--header-height);
  }
  

  
  .channel-info {
    gap: 12px;
  }
  
  .channel-details {
    gap: 10px;
  }
  
  .channel-logo {
    height: 56px;
    width: 56px;
  }
  
  .channel-title {
    font-size: 1.15rem;
  }
  
  .channel-category {
    font-size: 0.88rem;
  }
  
  .nav-controls {
    width: 100%;
    justify-content: center;
  }
  
  .hide-mobile {
    display: none;
  }
  
  .show-mobile {
    display: inline;
  }
  
  .shortcuts-hint {
    display: none;
  }
  
  .related-title {
    font-size: 1.05rem;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 20px 20px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .footer-stats {
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 80px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 12px;
  }
  
  .controls-inner {
    flex-direction: column;
    padding: 8px;
  }
  
  .search {
    width: 95%;
    padding: 10px 14px;
  }
  
  .btn {
    padding: 9px 14px;
    font-size: 0.9rem;
  }
  
  .related-row {
    gap: 10px;
    padding: 8px 0;
  }
  
  .related-item {
    min-width: 140px;
    flex: 0 0 140px;
  }
  
  .related-item .logo-wrap {
    height: 90px;
  }
  
  .related-item img {
    max-height: 70px;
  }
  
  .card .logo-wrap {
    height: 100px;
  }
  
  .card img {
    max-height: 80px;
  }
  .footer-stats {
    justify-content: left;
  }
  
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 12px;
  }
  
  .site-logo span {
    font-size: 1.2rem;
  }
  
  .mobile-menu {
    padding: 106px;
  }
  
  .mobile-nav a {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  
  .channel-title {
    font-size: 1rem;
  }
  
  .footer-inner {
    padding: 30px 16px 20px;
  }
  
  .footer-brand {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 70px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
}

/* Print styles */
@media print {
  .site-header,
  .top-controls,
  .nav-controls,
  .related-section,
  .site-footer,
  .bottom-nav,
  .back-to-top {
    display: none;
  }

}

