/* custom.css - Redesign for Premium Look */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Onest:wght@100..900&display=swap');

:root {
  --bg-main: #ebe9e1 !important;
  --card-bg: #ffffff !important;
  --nav-bg: #f5f4ef !important;
  --text-dark: #121212 !important;
  --text-light: #f5f4ef !important;
  --text-muted: #5a5a5a !important;
  --brand-red: #c00018 !important;
  --font-family: 'Onest', 'Montserrat', sans-serif !important;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  --shadow-lg: 0 30px 50px -10px rgba(0, 0, 0, 0.3) !important;
  --border-radius: 16px !important;
  --player-bar-bg: #0f0f0f !important;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;

  /* Overrides for main.css variables to prevent dark blue boxes */
  --body-bg: #ebe9e1 !important;
  --main-body-bg: transparent !important;
  --color-title: #121212 !important;
  --color-text: #121212 !important;
  --player-primary: #c00018 !important;
  --btn-bg: #121212 !important;
  --btn-color: #fff !important;
  --player-headings-bg: transparent !important;
}

html {
  scroll-padding-top: 100px !important;
}

html.dark,
html.dark:root {
  --bg-main: #121212 !important;
  --card-bg: #1a1a1a !important;
  --nav-bg: #181818 !important;
  --text-dark: #f0f0f0 !important;
  --text-light: #121212 !important;
  --player-bar-bg: #1a1a1a !important;
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
  --shadow-lg: 0 30px 50px -10px rgba(0, 0, 0, 0.7) !important;

  /* Overrides for main.css variables */
  --body-bg: #121212 !important;
  --main-body-bg: transparent !important;
  --color-title: #f0f0f0 !important;
  --color-text: #e0e0e0 !important;
}

body {
  font-family: var(--font-family) !important;
  background-color: var(--bg-main) !important;
  color: var(--text-dark) !important;
  background-image: none !important;
  margin: 0;
  overflow-x: hidden;
}

.custom-main {
  background-color: transparent !important;
  padding: 0 !important;
  padding-top: 24px !important;
}

/* ------ TOP NAVIGATION ------ */
.new-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--nav-bg) !important;
  z-index: 1000 !important;
  padding: 15px 0 !important;
  border-bottom: none !important;
  box-shadow: var(--shadow-sm) !important;
}

.flex-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto !important;
  max-width: 1200px !important;
}

.nav-links {
  display: flex !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.nav-link {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background-color: transparent;
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  background-color: #22c55e;
}

.nav-link.active {
  color: #22c55e;
}

/* Invert white logo on light theme */
html:not(.dark) .header-brand {
  filter: invert(1) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.header-brand {
  height: 36px !important;
}

#toggle-scheme {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
}

#toggle-scheme:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Explicitly hide the stations panel since it messes with layout */
#channels-section,
.player-channels,
#channels,
.history-wrapper,
.history,
.history-item {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
  z-index: -9999 !important;
  pointer-events: none !important;
}

/* Explicitly hide PRM container */
#open-prm,
.prm,
#prm,
.prm-content,
.prm-item,
.channel-item {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ------ HERO SECTION ------ */
.hero-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 40px !important;
  background: var(--card-bg) !important;
  padding: 40px !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow-md) !important;
  margin-bottom: 60px !important;
  min-height: 380px !important;
}

@media(max-width: 768px) {
  .hero-wrapper {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px !important;
  }
}

.hero-image-col {
  flex: 0 0 300px !important;
  width: 300px !important;
  height: 300px !important;
  position: relative !important;
  border-radius: var(--border-radius) !important;
}

.hero-section .image,
.hero-section .player-picture,
.hero-section .player-picture-wrapper {
  background-color: var(--card-bg) !important;
  background-size: cover !important;
  background-position: center !important;
}

.hero-section .player-picture {
  width: 300px !important;
  height: 300px !important;
  border-radius: var(--border-radius) !important;
  object-fit: cover !important;
  position: relative !important;
}

.hero-section .player-picture-wrapper {
  border-radius: var(--border-radius) !important;
  border: none !important;
  width: 300px !important;
  height: 300px !important;
  position: relative !important;
  box-shadow: var(--shadow-md) !important;
}

.hero-info-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  flex: 1 !important;
}

@media(max-width: 768px) {
  .hero-info-col {
    align-items: center !important;
  }

  .hero-buttons {
    justify-content: center !important;
  }
}

.badge-sonando {
  display: inline-block;
  background-color: #1a1a1a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

html.dark .badge-sonando {
  background-color: #333;
}

.hero-song-title {
  font-size: 32px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
  color: var(--text-dark) !important;
  text-shadow: none !important;
}

.hero-station-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 30px !important;
}

.hero-buttons {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.hero-btn {
  padding: 14px 28px !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  letter-spacing: 0.5px !important;
  box-shadow: var(--shadow-sm) !important;
  height: max-content !important;
  width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.black-btn {
  background-color: #0f172a !important;
  color: #fff !important;
  border: none !important;
}

.black-btn:hover {
  background-color: var(--brand-red) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

.hero-btn svg {
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
}

/* ------ HEADINGS ------ */
.custom-heading {
  background: transparent !important;
  justify-content: flex-start !important;
  margin-bottom: 24px !important;
}

.custom-heading .section-name {
  background: transparent !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  color: var(--text-dark) !important;
}

.custom-heading .section-name span {
  color: var(--brand-red);
}

/* ------ TEAM LOCUTORES ------ */
.team .swiper-slide {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.4s ease;
  background: var(--card-bg);
}

.team .swiper-slide:hover {
  transform: translateY(-8px);
}

.team-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team .swiper-slide:hover .team-image {
  transform: scale(1.05);
}

.team-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 24px 16px;
  color: #fff;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.team-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.custom-swiper-btn {
  background: rgba(255, 255, 255, 0.8);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  color: #000 !important;
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-md);
}

.custom-swiper-btn::after {
  font-size: 16px !important;
  font-weight: 900;
}

/* ------ PROGRAMAS ------ */
.custom-program-wrap {
  background: transparent !important;
  box-shadow: none !important;
}

.custom-tabs {
  display: flex;
  gap: 12px;
  background: transparent !important;
  border-radius: 40px !important;
  padding: 10px;
  overflow-x: auto;
  justify-content: center;
  margin-bottom: 24px;
}

.custom-tabs::-webkit-scrollbar {
  display: none;
}

.program-button {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 40px;
  padding: 12px 24px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  transition: var(--transition);
  color: var(--text-dark) !important;
  flex: none !important;
}

.program-button:hover,
.program-button.active-tab {
  background: #121212 !important;
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}

.schedule-list {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.schedule-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  align-items: center;
}

.schedule-item:last-child {
  border-bottom: none;
}

/* ------ NOTICIAS GRID ------ */
.news-grid-layout {
  display: block !important;
  width: 100% !important;
}

.news-main-wrap .swiper-slide,
.news-main-wrap .news-item {
  border-radius: var(--border-radius) !important;
  overflow: hidden !important;
  position: relative !important;
  height: 400px !important;
  background: var(--card-bg) !important;
  width: 100% !important;
}

.news-main-wrap .news-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.news-main-wrap .news-content {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%) !important;
  padding: 40px 24px !important;
  color: white !important;
  z-index: 2 !important;
}

.news-thumbs-wrap,
#news-thumbs,
.swiper-news-thumbs {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ------ ANUNCIOS BANNERS ------ */
.promo-banner-wrap {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.promo-banner-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* ------ TOP VIDEOS ------ */
.custom-videos-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

@media(max-width: 900px) {
  .custom-videos-grid {
    grid-template-columns: 1fr;
  }
}

.videoTops {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 400px;
  overflow-y: auto;
}

.videoTops-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  cursor: pointer;
}

.videoTops-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ------ FLOATING PLAYER (FIXED BOTTOM) ------ */
.custom-floating-player-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;
  background: var(--player-bar-bg) !important;
  padding: 12px 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.4s ease !important;
}

.floating-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.red-play-btn {
  background: var(--brand-red);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(192, 0, 24, 0.4);
}

.red-play-btn:hover {
  transform: scale(1.1);
  background: #a00014;
}

.red-play-btn svg {
  width: 24px;
  height: 24px;
}

.white-prog-btn {
  background: #ffffff;
  color: #121212;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.white-prog-btn:hover {
  background: #f0f0f0;
}

.floating-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.floating-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-right {
  display: flex;
  align-items: center;
}

.custom-volume-horiz {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 30px;
  gap: 12px;
}

.vol-btn-proxy {
  background: transparent !important;
  color: #fff;
  border: none;
  display: flex;
  cursor: pointer;
}

.vol-btn-proxy svg {
  width: 20px;
  height: 20px;
}

.custom-vol-drop {
  display: block !important;
  position: static !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 120px !important;
}

.custom-range {
  width: 100% !important;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  appearance: none;
  border-radius: 2px;
}

.custom-range::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}


.red-btn {
  background: var(--brand-red) !important;
  color: #fff !important;
  border: none !important;
  padding: 0 24px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
  transition: transform 0.2s !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.red-btn:hover {
  transform: scale(1.05) !important;
}

#hero-play {
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 24px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
}

/* Hero Player Text Refinement */
.hero-song-title {
  font-size: 1.5rem !important;
  white-space: normal !important;
  line-height: 1.2 !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .hero-song-title {
    font-size: 1.8rem !important;
  }
}

/* Enforce YouTube Player Position on Desktop */
@media (min-width: 901px) {
  .custom-videos-grid {
    width: 100% !important;
    display: block !important;
  }

  .videoTops {
    min-height: 440px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
  }

  .videoTops-list {
    width: 40% !important;
    max-width: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    transform: none !important;
  }

  .videoTops-item,
  .videoTops-content {
    position: static !important;
    transform: none !important;
    overflow: visible !important;
    width: 100% !important;
  }

  .videoTops-iframe {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    right: 0 !important;
    width: calc(100% - 420px) !important;
    /* 100% of container minus the list width */
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100% !important;
    z-index: 20;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }

  .videoTops-iframe iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
    background-color: #000;
  }
}