/* ==========================================================================
   Regions Channel / IPTV Page
   ========================================================================== */

.rc-intro {
  max-width: 800px;
  margin-bottom: 50px;
}

.rc-intro h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1rem;
}

.rc-intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* IPTV Live Player Mockup */
.rc-player-wrap {
  width: 100%;
}

.rc-player {
  position: relative;
  width: 100%;
  padding-top: 50%; /* 2:1 Aspect Ratio for widescreen tv feel */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rc-player-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rc-live-badge {
  align-self: flex-start;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.rc-live-badge .dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.rc-play-btn {
  align-self: center;
  width: 80px;
  height: 80px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.rc-play-btn:hover {
  transform: scale(1.1);
  background: #7c3aed;
}

.rc-player-info {
  text-align: left;
  max-width: 600px;
}

.rc-player-info h3 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.rc-player-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Program Segments Grids */
.rc-group {
  margin-bottom: 60px;
}

.rc-group:last-child {
  margin-bottom: 0;
}

.rc-group-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 12px;
}

.rc-group-title i {
  color: var(--accent);
}

.rc-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf0f5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.rc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(7, 22, 51, 0.06);
}

.rc-card-media {
  position: relative;
  width: 100%;
  padding-top: 62.5%; /* 16:10 Aspect Ratio */
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}

/* Fallback/broken image styling */
.rc-card-media::after {
  content: "\f425"; /* bootstrap icon bi-image */
  font-family: "bootstrap-icons";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1;
}

.rc-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, color 0.2s ease;
  cursor: pointer;
  pointer-events: none;
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rc-card:hover .rc-card-play {
  transform: translate(-50%, -50%) scale(1.15);
  color: var(--accent);
}

.rc-card-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.rc-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.rc-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

/* RTL Adjustments */
[dir="rtl"] .rc-player-info {
  text-align: right;
}

[dir="rtl"] .rc-group-title {
  font-family: var(--font-base), sans-serif;
}
