/* ==========================================================================
   NowSport CSS Stylesheet - Premium Dark Theme
   ========================================================================== */

:root {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: #0e0e0e;
  --border-color: #161616;
  --border-hover: #262626;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --accent-color: #ffffff; /* Premium white/grayscale accent */
  --accent-color-rgb: 255, 255, 255;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-height: 68px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + 20px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #252525;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #353535;
}

/* ══ APP HEADER ════════════════════════════════════════════════ */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
  z-index: 1000;
  transition: background 0.3s;
}

.logo-area {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background-color 0.2s, transform 0.1s;
}

.header-icon-btn:hover {
  color: var(--text-primary);
  background-color: var(--border-color);
}

.header-icon-btn:active {
  transform: scale(0.95);
}

.logout-btn:hover {
  color: #ff3b30;
  background-color: rgba(255, 59, 48, 0.1);
}

/* ══ MAIN APP CONTENT ══════════════════════════════════════════ */
.app-main {
  margin-top: var(--header-height);
  padding: 24px 4%;
}

.app-section {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.app-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* Ambient glow effect behind Home */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* ══ CHANNELS CAROUSEL / ROW ══════════════════════════════════ */
.home-row {
  margin-bottom: 40px;
  position: relative;
}

.row-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.row-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-title svg {
  color: var(--accent-color);
}

.slider-arrows {
  display: flex;
  gap: 8px;
}

.slider-arrow {
  background: #111;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.slider-arrow:hover {
  background: #222;
  color: var(--text-primary);
  border-color: #444;
}

.slider-track-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding: 4px;
}

.slider-track-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

/* Channel Card */
.channel-card {
  width: 240px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.channel-card:hover {
  transform: translateY(-6px);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1b0a0a 0%, #060e2e 100%);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.channel-card:hover .card-media {
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(229, 9, 20, 0.1);
}

.card-logo-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-logo-container svg, 
.card-logo-container img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.card-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-color);
  color: black;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px 3px 6px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.card-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  animation: pulse 1.2s infinite alternate;
}

.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #888;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  opacity: 0;
  transform: scale(0.8);
}

.channel-card:hover .card-fav-btn {
  opacity: 1;
  transform: scale(1);
}

.card-fav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #ffb800;
  border-color: rgba(255, 184, 0, 0.3);
}

.card-fav-btn.is-fav {
  opacity: 1 !important;
  transform: scale(1) !important;
  color: #ffb800;
  background: rgba(0, 0, 0, 0.6);
}

@keyframes pulse {
  from { opacity: 0.4; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.card-meta-info {
  margin-top: 12px;
  padding: 0 4px;
}

.card-channel-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.card-category-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Event Card (Landscape Grid) */
.event-card {
  width: 290px;
  cursor: pointer;
  transition: transform 0.25s;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #111;
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}

.event-time-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.event-live-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-color);
  color: black;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-details {
  margin-top: 12px;
  padding: 0 4px;
}

.event-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.event-channel-name {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* ══ MULTIVIEW STYLES ══════════════════════════════════════════ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.sh-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-home-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.back-home-btn:hover {
  background: #181818;
  border-color: #333;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.sh-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.layout-selector {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3px;
}

.layout-pill {
  background: none;
  border: none;
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.layout-pill:hover {
  color: var(--text-primary);
}

.layout-pill.active {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.mv-btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.mv-btn-primary:hover {
  background: #e0e0e0;
}

.mv-btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.mv-btn-secondary:hover {
  background: #181818;
  border-color: #333;
}

/* Grid configurations for slots */
.multiview-grid {
  display: grid;
  gap: 16px;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: calc(100vh - 250px);
  background: #000;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

/* Columns systems */
.layout-cols-2 { grid-template-columns: 1fr 1fr; }
.layout-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.layout-cols-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.layout-cols-5 { grid-template-columns: 1fr 1fr 1fr; } /* Custom logic handled in JS for rows */
.layout-cols-6 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }

/* Multiview Slot container */
.mv-slot {
  position: relative;
  background: #080808;
  border-radius: 12px;
  border: 2px dashed #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  overflow: hidden;
}

.mv-slot:hover {
  border-color: #444;
  background: #0d0d0d;
}

.mv-slot-empty-icon {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: transform 0.2s;
}

.mv-slot:hover .mv-slot-empty-icon {
  transform: scale(1.1);
  color: var(--text-secondary);
}

.mv-slot-empty-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Slot filled state */
.mv-slot.filled {
  border: 1px solid var(--border-color);
  cursor: default;
}

.mv-slot-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s;
  z-index: 20;
}

.mv-slot.filled:hover .mv-slot-remove-btn {
  opacity: 1;
  transform: translateY(0);
}

.mv-slot-remove-btn:hover {
  background: #ff3b30;
  border-color: #ff3b30;
}

/* ══ GENERAL GRIDS ════════════════════════════════════════════ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.channels-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state span {
  font-size: 0.95rem;
  max-width: 400px;
  line-height: 1.5;
}

/* ══ CERCA (SEARCH) SECTION ════════════════════════════════════ */
.search-bar-container {
  margin-bottom: 30px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

#appSearchInput {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: white;
  padding: 16px 20px 16px 54px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: all 0.25s;
}

#appSearchInput:focus {
  border-color: #444;
  background: #151515;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.02);
}

.search-results-container {
  max-width: 900px;
  margin: 0 auto;
}

.search-results-category-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
  font-weight: 700;
  margin: 24px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.search-channel-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ══ BOTTOM NAVIGATION ════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(28px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 70px;
  height: 100%;
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.2s;
  position: relative;
}

.nav-item svg {
  transition: transform 0.2s, color 0.2s;
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item:hover svg {
  transform: translateY(-2px);
}

.nav-item.active {
  color: var(--text-primary);
}

.nav-item.active svg {
  color: var(--text-primary);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 0 0 2px 2px;
}

/* ══ VIDEO PLAYER MODAL ════════════════════════════════════════ */
.player-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.player-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.player-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.player-wrap {
  position: relative;
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.player-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  padding: 0 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s;
}

.player-wrap:hover .player-top-bar {
  opacity: 1;
}

.player-logo-text {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.2px;
  background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.player-channel-tag {
  background: #ffffff;
  color: #000000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.player-close-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.player-close-btn:hover {
  background: rgba(255,255,255,0.2);
}

.player-screen {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-loading {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 5;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}

.player-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══ CHANNEL SELECTOR MODAL (FOR MULTIVIEW) ══════════════════ */
.mv-channel-item {
  background: #181818;
  border: 1px solid #282828;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.mv-channel-item:hover {
  background: #252525;
  border-color: #444;
  transform: translateY(-2px);
}

.mv-ch-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mv-ch-emoji {
  font-size: 1.25rem;
}

.mv-ch-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: white;
}

.mv-ch-category {
  font-size: 0.72rem;
  color: #888;
  margin-top: 2px;
  text-transform: uppercase;
}

.mv-ch-select-btn {
  background: white;
  color: black;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ══ FLOATING ANNOUNCEMENTS ═══════════════════════════════════ */
.ann-bar-floating {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: linear-gradient(135deg, #1b0c0c 0%, #080808 100%);
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 12px 20px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: slideDownFloat 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes slideDownFloat {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.ann-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
}

.ann-icon {
  font-size: 1rem;
}

.ann-close {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 10px;
}

.ann-close:hover {
  color: white;
}

/* Ghost Buttons (UI Helper) */
.sky-btn-ghost {
  background: none;
  border: 1px solid #333;
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sky-btn-ghost:hover {
  background: #151515;
  border-color: #555;
}

.sky-toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translate(-50%, 20px);
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid #333;
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sky-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Mobile Responsiveness Optimizations (Phone Screen Support)
   ========================================================================== */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 56px;
    --nav-height: 60px;
  }
  
  body {
    padding-bottom: calc(var(--nav-height) + 16px);
  }

  .app-header {
    padding: 0 16px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .header-right {
    gap: 8px;
  }

  .header-icon-btn {
    padding: 6px;
  }

  /* Reduce spacing on sections */
  .app-section {
    padding: 16px;
  }

  .home-row {
    margin-bottom: 24px;
  }

  .row-title {
    font-size: 1.1rem;
  }

  /* Make cards smaller on mobile to fit nicely */
  .channel-card {
    width: 150px;
  }

  .event-card {
    width: 220px;
  }

  .card-channel-name {
    font-size: 0.8rem;
  }

  .card-category-label {
    font-size: 0.65rem;
  }

  /* Grid layout adjustments */
  .channels-grid-list {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 12px !important;
  }

  .events-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Multiview optimization for mobile */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .sh-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .layout-selector {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .multiview-grid {
    gap: 8px;
  }

  /* Bottom nav layout details */
  .bottom-nav {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    height: auto;
    min-height: 60px;
  }

  .nav-item {
    padding: 6px 0;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .nav-item span {
    font-size: 0.65rem;
  }

  /* Search Page responsive layout */
  .search-bar-container {
    padding: 12px 16px;
  }

  .search-input-wrapper input {
    font-size: 0.95rem;
    padding: 12px 16px 12px 42px;
  }
}

