/* Base styles */
html {
  margin-top: 0 !important;
}

* {
  font-family: arial, Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header styles — igual que los reproductores (diseño futbollibreplay.com) */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 22px;
  background: linear-gradient(to right, #16a34a, #15803d);
  box-shadow: 0 2px 8px rgba(20, 50, 30, .15);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

header.site-header *,
#menu-modal * {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
  text-decoration: none;
  flex: none;
}
.logo:hover { color: #fff; }
.logo svg { display: block; width: 27px; height: 27px; flex: none; }
.logo i { font-style: normal; opacity: .85; font-weight: 700; }

.navbar { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.navbar a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: .9;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.navbar a:hover,
.navbar a[aria-current="page"] { color: #fff; opacity: 1; border-bottom-color: #fff; }

#menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 2px;
}
#menu-toggle svg { display: block; width: 1.6rem; height: 1.6rem; }

/* Panel lateral en móvil */
#menu-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 30, 20, .45);
}

.modal-content {
  position: relative;
  width: 270px;
  max-width: 80%;
  height: 100%;
  padding: 22px;
  background: #fff;
  border-right: 1px solid #d9e3dc;
  overflow-y: auto;
}
#menu-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: 0;
  color: #74847a;
  cursor: pointer;
}
#menu-close svg { display: block; width: 1.5rem; height: 1.5rem; }
#menu-close:hover { color: #16211b; }

.modal-nav { display: flex; flex-direction: column; margin-top: 2.2rem; }
.modal-nav a {
  padding: 12px 2px;
  color: #4a5a51;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #e7eee9;
}
.modal-nav a:hover { color: #16a34a; }

@media (max-width: 900px) {
  .navbar { display: none; }
  #menu-toggle { display: flex; }
  header.site-header { padding: 8px 16px; }
  .logo { font-size: 19px; }
}

/* Main content */
main {
  margin: 0.6rem auto;
  width: 91.666667%;
  max-width: 66.666667%;
}

h1 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: bold;
  margin-top: 0.6rem;
  margin-bottom: 1.25rem;
  color: #065f46;
}

.description {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: #4b5563;
}

.description a {
  color: #16a34a;
  text-decoration: underline;
}

/* Agenda section */
#wraper {
  width: 100%;
  margin: 0 auto;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  height: 50%;
  display: flex;
  flex-direction: column;
}

.agenda-header {
  background: linear-gradient(to right, #16a34a, #15803d);
  color: white;
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  flex-grow: 1;
  padding: 0.5rem;
}

#title-agenda {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
}

/* Menu styles */
#menu {
  margin: 0;
  padding: 0;
  background-color: #fff;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,.1);
}

#menu > li {
  border-bottom: 1px solid #e5e7eb;
  list-style: none;
}

#menu > li:hover {
  background-color: #f9fbfc;
}

.menu-item {
  list-style: none;
  background: none;
}

.menu-item a {
  display: block;
  padding: 5px 10px;
  color: #010101;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease-in-out;
}

.menu-item a:hover {
  background-color: #05b548;
  color: #fff;
}

/* Channel cards */
.channels-title {
  text-align: center;
  font-size: 1.875rem;
  margin-bottom: 1.75rem;
  margin-top: 2.5rem;
  font-weight: 600;
  color: #065f46;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background-color: white;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-image {
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
}

.card-image img {
  height: 6rem;
  width: 6rem;
  object-fit: contain;
}

.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card-content h3 {
  color: #1f2937;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.btn-watch {
  background-color: #15803d;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-block;
}

/* Footer styles */
footer {
  height: 2.5rem;
  background-color: #1f2937;
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.footer-title {
  text-align: center;
  font-size: 0.875rem;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.redes > li {
  list-style-type: none;
}

.red-item {
  color: inherit;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.red-item:hover {
  color: #16a34a;
}

/* Responsive styles */
@media (max-width: 800px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  main {
    max-width: 90%;
    width: 100%;
  }

  #title-agenda {
    font-size: 18px;
  }

  #iframeVideo {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (max-width: 480px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
}

/* iPhone specific styles */
@media only screen and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 2) {
  #menu {
    padding: 0 5px;
  }

  .menu-item a {
    padding: 10px 15px;
    font-size: 1rem;
  }

  #iframeVideo,
  #embedIframe {
    width: 100% !important;
    height: auto !important;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }
}

/* Utility classes */
.transition-all {
  transition: all .3s ease-in-out;
}

.socialicon {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

@media (max-width: 640px) {
  .hide-on-mobile {
    display: none !important;
  }
}
