/* Full-page channel watch layout (Player look → Full Page).
   Loaded directly from the channel watch view so it works even before
   the Vite site.css bundle is rebuilt. Mirrors site.css rules. */

.browse-page.channel-watch-page--full-page [data-channel-watch-header] {
  display: none;
}

.browse-page.channel-watch-page--full-page {
  padding-bottom: 0;
  overflow: hidden;
}

.browse-page.channel-watch-page--full-page .browse-shell {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

.channel-watch-guide-fab[hidden] {
  display: none !important;
}

body:has(.channel-watch-page--full-page) footer {
  display: none;
}

.channel-watch-shell--full-page {
  position: relative;
  height: calc(100dvh - 8rem);
  overflow: hidden;
}

.channel-watch-layout--full-page {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  height: 100%;
  min-height: 0;
}

.channel-watch-layout--full-page .channel-watch-sidebar {
  display: none;
}

.channel-watch-layout--full-page .channel-watch-player-wrap {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.channel-watch-layout--full-page .channel-watch-player {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.channel-watch-layout--full-page .channel-watch-player.card {
  border: none;
  box-shadow: none;
}

.channel-watch-layout--full-page [data-island="VideoPlayer"],
.channel-watch-layout--full-page .video-player-surface {
  width: 100%;
  height: 100%;
}

.channel-watch-layout--full-page .video-player-surface {
  aspect-ratio: auto !important;
  max-height: 100%;
}

/* Keep subscribe CTAs above in-player controls (z-index 20). */
.channel-watch-layout--full-page .channel-watch-sub-overlay {
  z-index: 40;
  pointer-events: auto;
}
.channel-watch-layout--full-page .channel-watch-player.is-subscription-locked [data-island="VideoPlayer"] {
  pointer-events: none;
}
.channel-watch-layout--full-page .channel-watch-sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.channel-watch-layout--full-page .channel-watch-sub-actions .btn-accent,
.channel-watch-layout--full-page .channel-watch-sub-actions .btn-outline {
  flex: 1 1 9rem;
  justify-content: center;
  padding: 0.7rem 0.85rem;
  font-size: 11px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}
.channel-watch-layout--full-page .channel-watch-sub-paypal-btn.btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.channel-watch-layout--full-page .channel-watch-sub-paypal-btn.btn-outline:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.channel-watch-guide-fab {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.7rem 0.85rem 0.95rem;
  border: none;
  border-radius: 999px 0 0 999px;
  background: #2db9e7;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: -6px 0 24px rgba(45, 185, 231, 0.35);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.15s ease, opacity 0.2s ease, transform 0.2s ease;
}

.channel-watch-guide-fab:hover {
  background: #1a9bc7;
}

.channel-watch-guide-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(100%);
}

.channel-watch-guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.channel-watch-guide-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.channel-watch-guide-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  max-height: min(85dvh, 720px);
  background: var(--surface-panel, #ffffff);
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  visibility: hidden;
}

html.dark .channel-watch-guide-drawer {
  background: var(--surface-panel, #1f2937);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.channel-watch-guide-drawer.is-open {
  transform: translateY(0);
  visibility: visible;
}

.channel-watch-guide-drawer-handle {
  flex-shrink: 0;
  width: 2.5rem;
  height: 0.25rem;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
}

html.dark .channel-watch-guide-drawer-handle {
  background: rgba(255, 255, 255, 0.18);
}

.channel-watch-guide-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

html.dark .channel-watch-guide-drawer-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.channel-watch-guide-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  color: var(--text-secondary, #374151);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

html.dark .channel-watch-guide-drawer-close {
  border-color: rgba(255, 255, 255, 0.12);
  color: #d1d5db;
}

.channel-watch-guide-drawer-close:hover {
  border-color: rgba(45, 185, 231, 0.55);
  color: #2db9e7;
  background: rgba(45, 185, 231, 0.08);
}

.channel-watch-guide-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.channel-watch-guide-drawer .channel-watch-guide,
.channel-watch-guide-drawer .channel-vod-panel {
  margin-top: 0 !important;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.channel-watch-guide-drawer .channel-vod-detail-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.channel-watch-guide-drawer .channel-vod-detail-thumb {
  width: 100%;
  max-width: 11rem;
}

@media (min-width: 480px) {
  .channel-watch-guide-drawer .channel-vod-detail-grid {
    grid-template-columns: 9rem minmax(0, 1fr);
    align-items: start;
  }

  .channel-watch-guide-drawer .channel-vod-detail-thumb {
    max-width: 9rem;
  }
}

@media (min-width: 640px) {
  .channel-watch-guide-drawer .channel-vod-detail-grid {
    grid-template-columns: 11rem minmax(0, 1fr);
  }

  .channel-watch-guide-drawer .channel-vod-detail-thumb {
    max-width: 11rem;
  }
}

.channel-watch-guide-drawer .epg-scroll {
  max-height: none;
}

body.channel-watch-guide-drawer-open {
  overflow: hidden;
}

@media (max-width: 639.98px) {
  .channel-watch-guide-fab {
    padding: 0.75rem 0.55rem 0.75rem 0.8rem;
    font-size: 10px;
  }

  .channel-watch-guide-drawer {
    max-height: min(90dvh, 720px);
  }
}

.channel-watch-full-view-btn {
  width: auto;
  min-height: 2.75rem;
  padding: 0 0.85rem 0 0.65rem;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.channel-watch-exit-full-view {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.channel-watch-exit-full-view[hidden] {
  display: none !important;
}

.channel-watch-exit-full-view:hover {
  background: rgba(0, 0, 0, 0.78);
}

.channel-watch-full-view-btn:focus-visible,
.channel-watch-exit-full-view:focus-visible {
  outline: 2px solid #2db9e7;
  outline-offset: 2px;
}

.channel-watch-player-wrap {
  position: relative;
}

body.is-channel-full-view [data-channel-watch-header] {
  display: none;
}

body.is-channel-full-view .browse-shell {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

body.is-channel-full-view .browse-page.channel-watch-page {
  padding-bottom: 0;
  overflow: hidden;
}

body.is-channel-full-view footer {
  display: none;
}

.epg-live-toggle {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.epg-live-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0.65rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted, #64748b);
  background: rgba(0, 0, 0, 0.03);
  cursor: pointer;
}
html.dark .epg-live-toggle-btn {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
.epg-live-toggle-btn--active {
  color: #fff;
  border-color: #e11d48;
  background: #e11d48;
}
