/* ==========================================================================
   ROARINK tube — Template-Specific Stylesheet (12 Pages)
   File:        tube/tube.css
   Author:      Mixing Theme
   Version:     1.0.0
   Description: Motion comic theater stage, video cards, playlists, channels,
                live watch party, vertical shorts, animatics lab, and OST jukebox.

   TABLE OF CONTENTS:
   01. Tube Hero Stage & Halftone Backdrop (.roar-tube-hero)
   02. Video Cards, Play Badges, Duration Pills & Save Button (.roar-tube-card)
   03. Interactive Video Watch Theater Stage & Timeline Controls (.roar-tube-stage)
   04. Chapter Jump Buttons, Up Next Queue & Episode Rows (.roar-tube-queue-item)
   05. Page 08: Live Premiere & Watch Party Stage (.roar-live-*)
   06. Page 09: Vertical Shorts & 9:16 Panel Reels Deck (.roar-shorts-*)
   07. Page 10: Behind-the-Panels Animatics & 3-Stem Mixer (.roar-anim-*)
   08. Page 11: Voice Cast Auditions & Vinyl OST Jukebox (.roar-vinyl-*)
   09. Page 12: Simulcast Premiere Schedule & Airing Guide (.roar-simul-*)
   ========================================================================== */

.roar-tube-hero {
  position: relative;
  background-color: var(--roar-navy);
  color: #ffffff;
  border-bottom: 4px solid var(--roar-navy);
  padding: 4rem 0;
  overflow: hidden;
  background-image:
    radial-gradient(rgba(11, 19, 32, 0.28) 1.5px, transparent 1.5px),
    linear-gradient(
      95deg,
      rgba(11, 19, 32, 0.92) 0%,
      rgba(11, 19, 32, 0.78) 48%,
      rgba(0, 107, 120, 0.55) 100%
    ),
    url("../assets/images/07-background-moon-city.webp");
  background-size: 16px 16px, 100% 100%, cover;
  background-position: 0 0, center center, center center;
  background-repeat: repeat, no-repeat, no-repeat;
}

.roar-tube-hero > .container {
  position: relative;
  z-index: 2;
}

#tube-hero-heading,
.roar-tube-hero .roar-hero-title,
.roar-tube-hero .roar-h1,
.roar-tube-hero h1 {
  color: #faf7f0;
  text-shadow: 4px 4px 0 #050911;
}

.roar-tube-card {
  background-color: var(--roar-surface);
  border: 2.5px solid var(--roar-navy);
  border-radius: var(--roar-radius-sm);
  box-shadow: var(--roar-shadow-comic);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--roar-duration) var(--roar-ease), box-shadow var(--roar-duration) var(--roar-ease);
}

.roar-tube-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--roar-navy);
}

.roar-tube-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--roar-navy);
  border-bottom: 2.5px solid var(--roar-navy);
  overflow: hidden;
  display: block;
}

.roar-tube-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms var(--roar-ease), filter 280ms var(--roar-ease);
}

.roar-tube-card:hover .roar-tube-thumb img {
  transform: scale(1.05);
  filter: brightness(0.88);
}

.roar-tube-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--roar-lime);
  color: var(--roar-navy);
  border: 2.5px solid var(--roar-navy);
  box-shadow: 3px 3px 0 var(--roar-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  z-index: 2;
  transition: transform 180ms var(--roar-ease), background-color 180ms var(--roar-ease);
}

.roar-tube-card:hover .roar-tube-play-badge {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #ffffff;
}

.roar-tube-duration {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  background-color: var(--roar-navy);
  color: var(--roar-lime);
  border: 1.5px solid var(--roar-lime);
  border-radius: var(--roar-radius-xs);
  padding: 0.15rem 0.5rem;
  font-family: var(--roar-font-condensed);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.roar-tube-save-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: var(--roar-radius-xs);
  border: 2px solid var(--roar-navy);
  background-color: var(--roar-surface);
  color: var(--roar-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--roar-navy);
  transition: background-color 160ms var(--roar-ease), color 160ms var(--roar-ease);
}

.roar-tube-save-btn:hover,
.roar-tube-save-btn.is-active {
  background-color: var(--roar-lime);
  color: var(--roar-navy);
}

.roar-tube-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.roar-tube-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--roar-ink-muted);
}

/* Interactive Video Watch Theater Stage */
.roar-tube-player-shell {
  border: 3px solid var(--roar-navy);
  border-radius: var(--roar-radius-sm);
  background-color: #060b13;
  box-shadow: var(--roar-shadow-comic);
  overflow: hidden;
}

.roar-tube-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #050911;
  overflow: hidden;
  cursor: pointer;
}

.roar-tube-stage-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease, filter 300ms ease;
}

.roar-tube-stage.is-playing .roar-tube-stage-poster {
  transform: scale(1.04);
  filter: contrast(1.08) saturate(1.12);
}

.roar-tube-stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 17, 0.25) 0%, rgba(5, 9, 17, 0.1) 50%, rgba(5, 9, 17, 0.82) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
}

.roar-tube-center-play {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background-color: var(--roar-lime);
  color: var(--roar-navy);
  border: 3px solid var(--roar-navy);
  box-shadow: 4px 4px 0 #050911;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  margin: auto;
  cursor: pointer;
  transition: transform 180ms var(--roar-ease), opacity 180ms var(--roar-ease);
}

.roar-tube-stage.is-playing .roar-tube-center-play {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.roar-tube-controls {
  background-color: var(--roar-navy);
  border-top: 2.5px solid #1e2d45;
  padding: 0.75rem 1rem;
  color: #ffffff;
}

.roar-tube-progress {
  position: relative;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.roar-tube-progress-fill {
  height: 100%;
  width: 24%;
  background: linear-gradient(90deg, var(--roar-turquoise) 0%, var(--roar-lime) 100%);
  border-radius: 999px;
  transition: width 150ms linear;
}

.roar-tube-chapter-btn {
  border: 1.5px solid var(--roar-border-color);
  border-radius: var(--roar-radius-xs);
  background-color: var(--roar-surface);
  color: var(--roar-ink);
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms var(--roar-ease);
}

.roar-tube-chapter-btn:hover,
.roar-tube-chapter-btn.is-active {
  background-color: var(--roar-lime);
  color: var(--roar-navy);
  border-color: var(--roar-navy);
}

.roar-tube-queue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 2px solid var(--roar-border-color);
  border-radius: var(--roar-radius-xs);
  background-color: var(--roar-surface);
  cursor: pointer;
  text-align: left;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition: all 160ms var(--roar-ease);
}

.roar-tube-queue-item > div:last-child {
  min-width: 0;
  flex: 1 1 0%;
  overflow: hidden;
}

.roar-tube-queue-item:hover,
.roar-tube-queue-item.is-active {
  border-color: var(--roar-navy);
  background-color: var(--roar-lime-soft);
  box-shadow: var(--roar-shadow-comic-sm);
}

.roar-tube-queue-thumb {
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: var(--roar-radius-xs);
  border: 1.5px solid var(--roar-navy);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--roar-navy);
}

.roar-tube-queue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roar-tube-hero .roar-hero-title {
  color: #faf7f0;
  text-shadow: 4px 4px 0 #050911;
}

.roar-tube-queue-meta {
  color: var(--roar-turquoise-deep);
}

.roar-tube-ep-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--roar-navy);
  border-radius: var(--roar-radius-xs);
  background-color: var(--roar-ivory-alt);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--roar-ink);
  text-decoration: none;
  transition: background-color 150ms var(--roar-ease), transform 150ms var(--roar-ease);
}

.roar-tube-ep-row:hover {
  background-color: var(--roar-lime-soft);
  color: var(--roar-navy);
  transform: translateX(3px);
}

.roar-tube-comment-item {
  padding: 1rem 1.15rem;
  border: 2px solid var(--roar-navy);
  border-radius: var(--roar-radius-xs);
  background-color: var(--roar-ivory-alt);
  box-shadow: 3px 3px 0 var(--roar-navy);
  margin-bottom: 0.85rem;
}

.roar-tube-channel-avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--roar-radius-sm);
  border: 2.5px solid var(--roar-navy);
  box-shadow: 3px 3px 0 var(--roar-navy);
  object-fit: cover;
  background-color: var(--roar-navy);
  flex-shrink: 0;
}

/* ==========================================================================
   Page 08: Live Premiere & Watch Party Stage (tube-live.html)
   ========================================================================== */
.roar-tube-poll-option {
  width: 100%;
  text-align: left;
  background-color: var(--roar-surface);
  border: 2px solid var(--roar-navy);
  border-radius: var(--roar-radius-xs);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  transition: all 160ms var(--roar-ease);
}

.roar-tube-poll-option:hover,
.roar-tube-poll-option.is-voted {
  background-color: var(--roar-lime-soft);
  box-shadow: 3px 3px 0 var(--roar-navy);
}

.roar-tube-chat-panel {
  border: 3px solid var(--roar-navy);
  border-radius: var(--roar-radius-sm);
  background-color: var(--roar-surface);
  box-shadow: var(--roar-shadow-comic);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 540px;
  overflow: hidden;
}

.roar-tube-chat-header {
  padding: 0.9rem 1rem;
  background-color: var(--roar-navy);
  color: #ffffff;
  border-bottom: 2.5px solid var(--roar-navy);
}

.roar-tube-chat-feed {
  flex: 1 1 auto;
  padding: 0.9rem;
  overflow-y: auto;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background-color: var(--roar-ivory);
}

.roar-tube-chat-msg {
  padding: 0.65rem 0.75rem;
  background-color: var(--roar-surface);
  border: 1.5px solid var(--roar-navy);
  border-radius: var(--roar-radius-xs);
  box-shadow: 2px 2px 0 var(--roar-navy);
}

.roar-tube-chat-form {
  padding: 0.85rem 1rem;
  border-top: 2px solid var(--roar-navy);
  background-color: var(--roar-surface);
}

/* ==========================================================================
   Page 09: Vertical Shorts & Panel Reels Deck (tube-shorts.html)
   ========================================================================== */
.roar-reel-stage-wrap {
  display: flex;
  justify-content: center;
}

.roar-reel-phone-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 9 / 16;
  background-color: #060b13;
  border: 4px solid var(--roar-navy);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--roar-navy);
  overflow: hidden;
}

.roar-reel-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms var(--roar-ease);
}

.roar-reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 19, 0.55) 0%, rgba(6, 11, 19, 0.05) 45%, rgba(6, 11, 19, 0.92) 100%);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.roar-reel-caption-box {
  background-color: rgba(11, 19, 32, 0.85);
  border: 2px solid var(--roar-lime);
  border-radius: var(--roar-radius-xs);
  padding: 0.9rem;
}

/* ==========================================================================
   Page 10: Behind-the-Panels Animatics & Stem Mixer (tube-animatics.html)
   ========================================================================== */
.roar-animatic-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #050911;
  overflow: hidden;
}

.roar-animatic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 280ms var(--roar-ease), transform 280ms var(--roar-ease);
}

.roar-animatic-viewport.stage-sketch .roar-animatic-img {
  filter: grayscale(1) contrast(1.45) brightness(1.12) sepia(0.6) hue-rotate(175deg);
}

.roar-animatic-viewport.stage-ink .roar-animatic-img {
  filter: grayscale(1) contrast(2.1) brightness(1.08);
}

.roar-animatic-viewport.stage-flats .roar-animatic-img {
  filter: saturate(1.45) contrast(1.15);
}

.roar-animatic-viewport.stage-composite .roar-animatic-img {
  filter: none;
}

.roar-animatic-notes-bar {
  background-color: rgba(11, 19, 32, 0.9);
  border: 1.5px solid var(--roar-lime);
  border-radius: var(--roar-radius-xs);
  padding: 0.65rem 0.85rem;
}

.roar-stem-channel {
  padding: 0.65rem 0.75rem;
  background-color: #152338;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--roar-radius-xs);
  transition: opacity 160ms var(--roar-ease), border-color 160ms var(--roar-ease);
}

.roar-stem-channel.is-active {
  border-color: var(--roar-lime);
}

.roar-stem-channel.is-muted {
  opacity: 0.5;
}

/* ==========================================================================
   Page 11: Voice Cast Dubbing Booth & OST Jukebox (tube-soundtrack.html)
   ========================================================================== */
.roar-voice-card {
  padding: 1rem 1.15rem;
  background-color: var(--roar-surface);
  border: 2px solid var(--roar-navy);
  border-radius: var(--roar-radius-xs);
  box-shadow: 3px 3px 0 var(--roar-navy);
}

.roar-voice-card.is-playing {
  background-color: var(--roar-lime-soft);
}

.roar-ost-turntable {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  background-color: #152338;
  border: 2px solid var(--roar-lime);
  border-radius: var(--roar-radius-xs);
  overflow: hidden;
}

.roar-ost-vinyl-disc {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 6px solid #050911;
  box-shadow: 0 0 0 2px var(--roar-lime);
  overflow: hidden;
  flex-shrink: 0;
}

.roar-ost-vinyl-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes roarVinylSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.roar-ost-turntable.is-spinning .roar-ost-vinyl-disc {
  animation: roarVinylSpin 6s linear infinite;
}

.roar-ost-track-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background-color: #152338;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--roar-radius-xs);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 150ms var(--roar-ease);
}

.roar-ost-track-btn:hover,
.roar-ost-track-btn.is-active {
  background-color: var(--roar-lime);
  color: var(--roar-navy);
  border-color: var(--roar-navy);
}

.roar-ost-track-btn.is-active .text-warning {
  color: var(--roar-navy) !important;
}
