/* ==========================================================================
   THE HAMPSHIRE HEAVIES (|H|H|) - OFFICIAL RETROSPECTIVE THEME
   Authentic Team Fortress 2 & Vintage Clan Design System
   ========================================================================== */

/* --- Fonts --- */
@font-face {
  font-family: 'TF2 Build';
  src: url('assets/fonts/tf2build.ttf') format('truetype');
  font-weight: bold;
  font-display: swap;
}

@font-face {
  font-family: 'TF2 Classic';
  src: url('assets/fonts/tf2.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TF2 Secondary';
  src: url('assets/fonts/tf2secondary.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}

/* --- Global Variables --- */
:root {
  --color-bg-dark: #1e1b18;
  --color-bg-deep: #141210;
  --color-parchment: #f4ecdc;
  --color-parchment-border: #d4c5a9;
  --color-parchment-text: #2c251f;
  --color-tf-red: #ba3c34;
  --color-tf-red-dark: #8c251e;
  --color-tf-blu: #5c7b8e;
  --color-tf-blu-dark: #375363;
  --color-tf-gold: #e5b338;
  --color-tf-gold-glow: #f8c95a;
  --color-charcoal: #252220;
  --color-border-dark: #3e3833;
  --color-text-light: #f5eedf;
  --color-text-muted: #aba296;

  --font-tf-build: 'TF2 Build', 'Arial Black', Impact, sans-serif;
  --font-tf-secondary: 'TF2 Secondary', 'Trebuchet MS', sans-serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
  --shadow-warm: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-hard: 3px 3px 0 rgba(0, 0, 0, 0.7);
}

/* --- Base Resets & Layout --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(186, 60, 52, 0.15), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(92, 123, 142, 0.12), transparent 40%),
    linear-gradient(rgba(20, 18, 16, 0.92), rgba(20, 18, 16, 0.96)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 2px, transparent 2px, transparent 6px);
  color: var(--color-text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--color-tf-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- Top Sticky Nav Bar --- */
.top-nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 23, 20, 0.96);
  border-bottom: 3px solid var(--color-tf-red);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  height: 38px;
  width: auto;
  border-radius: 4px;
  border: 1px solid var(--color-tf-gold);
}

.brand-title {
  font-family: var(--font-tf-build);
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--color-tf-gold);
  text-shadow: 1px 1px 2px #000;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-tf-secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.nav-links a:hover {
  color: var(--color-tf-gold);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
}

.tf-btn-sm {
  background: var(--color-tf-red);
  color: #fff;
  border: 2px solid #521310;
  font-family: var(--font-tf-build);
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
  transition: transform 0.1s, background-color 0.2s;
}

.tf-btn-sm:hover {
  background: #d4473e;
}

.tf-btn-sm:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

/* --- Hero Banner Section --- */
.hero-section {
  position: relative;
  padding: 2.5rem 1rem 3.5rem;
  background: radial-gradient(circle at 50% 30%, rgba(186, 60, 52, 0.3), rgba(20, 18, 16, 0.95));
  border-bottom: 4px solid var(--color-border-dark);
  text-align: center;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-banner-frame {
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 8px;
  background: #110f0e;
  border: 3px solid var(--color-tf-gold);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  max-width: 100%;
}

.hero-banner-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.hero-badge-tag {
  font-family: var(--font-tf-secondary);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--color-tf-gold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero-main-title {
  font-family: var(--font-tf-build);
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 3px 3px 0 var(--color-tf-red-dark), 5px 5px 12px rgba(0,0,0,0.8);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-parchment);
  max-width: 750px;
  margin: 0 auto 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

/* --- Hero Radio Widget --- */
.hero-player-card {
  background: #25211e;
  border: 2px solid var(--color-tf-gold);
  border-radius: 8px;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-warm);
}

.player-tape-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-tf-secondary);
  font-size: 0.85rem;
  color: var(--color-tf-gold);
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(229, 179, 56, 0.3);
  padding-bottom: 0.4rem;
}

.player-main-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.player-toggle-btn {
  background: var(--color-tf-red);
  color: #fff;
  font-family: var(--font-tf-build);
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid #5a1814;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
  transition: all 0.15s ease;
}

.player-toggle-btn:hover {
  background: #d6473e;
}

.hero-track-info {
  flex: 1;
  text-align: left;
  min-width: 200px;
}

.now-playing-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.now-playing-title {
  display: block;
  font-weight: bold;
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Equalizer Bars */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}

.eq-bars .bar {
  width: 5px;
  height: 4px;
  background: var(--color-tf-gold);
  border-radius: 1px;
}

.eq-bars.playing .bar {
  animation: eqBounce 0.8s infinite ease-in-out alternate;
}

.eq-bars.playing .bar:nth-child(2) { animation-delay: 0.15s; }
.eq-bars.playing .bar:nth-child(3) { animation-delay: 0.3s; }
.eq-bars.playing .bar:nth-child(4) { animation-delay: 0.45s; }
.eq-bars.playing .bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 22px; }
}

/* Quick Stats Bar */
.hero-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--color-border-dark);
  border-radius: 6px;
  padding: 0.9rem;
}

.stat-number {
  display: block;
  font-family: var(--font-tf-build);
  font-size: 1.8rem;
  color: var(--color-tf-gold);
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--color-parchment);
}

/* --- Main Layout Container --- */
.site-container {
  max-width: 1160px;
  margin: 3rem auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* --- Section Cards Common --- */
.content-section {
  border-radius: 8px;
  box-shadow: var(--shadow-warm);
  overflow: hidden;
  padding: 2.5rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-tf-secondary);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--color-tf-red);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.section-tag.light {
  color: var(--color-tf-gold);
}

.section-title {
  font-family: var(--font-tf-build);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 1px;
  color: var(--color-parchment-text);
  margin-bottom: 0.5rem;
}

.section-title.light {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.section-subtitle {
  font-size: 1.05rem;
  color: #554a3f;
  max-width: 700px;
  margin: 0 auto;
}

.section-subtitle.light {
  color: var(--color-parchment);
}

.header-divider {
  width: 80px;
  height: 4px;
  background: var(--color-tf-red);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-header.light .header-divider {
  background: var(--color-tf-gold);
}

/* --- Parchment / Vintage Paper Theme --- */
.parchment-card {
  background-color: var(--color-parchment);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.4) 0%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.015) 0px, rgba(0,0,0,0.015) 1px, transparent 1px, transparent 3px);
  color: var(--color-parchment-text);
  border: 4px solid var(--color-parchment-border);
}

/* --- Section 1: History Grid --- */
.history-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
}

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

.history-narrative {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.history-chapter {
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-tf-red);
}

.chapter-badge {
  font-family: var(--font-tf-secondary);
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--color-tf-red-dark);
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
}

.history-chapter h3 {
  font-family: var(--font-tf-build);
  font-size: 1.35rem;
  color: #1e1b18;
  margin-bottom: 0.6rem;
}

.history-chapter p {
  font-size: 1rem;
  line-height: 1.7;
  color: #383028;
}

.clan-quote {
  background: #fdfaf4;
  border-left: 4px solid var(--color-tf-gold);
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.clan-quote p {
  font-style: italic;
  font-size: 1.05rem;
  color: #2b231d;
  line-height: 1.6;
}

.clan-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: bold;
  font-style: normal;
  color: var(--color-tf-red-dark);
}

/* Chat Log Box */
.chat-log-box {
  background: #1e1b18;
  color: #ded6cb;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.8rem;
  border-left: 4px solid var(--color-tf-blu);
}

.chat-header {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--color-tf-gold);
  border-bottom: 1px solid #38322c;
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}

.chat-line {
  margin-bottom: 0.4rem;
}

.chat-nick {
  font-weight: bold;
}

.chat-nick.frog { color: #5aa9e6; }
.chat-nick.gimpy { color: #e86a5d; }

/* History Sidebar Cards */
.history-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.retro-photo-frame {
  background: #fff;
  padding: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border-radius: 4px;
  transform: rotate(-1deg);
  transition: transform 0.2s ease;
}

.retro-photo-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.retro-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.photo-caption {
  text-align: center;
  font-family: var(--font-tf-secondary);
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
}

.chalkboard-card {
  background: #1d211d;
  color: #f0f0f0;
  border: 8px solid #5a3d28;
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 4px 10px rgba(0,0,0,0.3);
}

.chalkboard-card h4 {
  font-family: var(--font-tf-build);
  color: var(--color-tf-gold);
  font-size: 1.1rem;
  letter-spacing: 1px;
  border-bottom: 1px dashed rgba(255,255,255,0.3);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.chalk-rules {
  list-style: none;
}

.chalk-rules li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.side-event-card {
  background: #e9e0cb;
  border: 2px dashed #bba98a;
  border-radius: 6px;
  padding: 1.2rem;
}

.side-event-card h4 {
  font-family: var(--font-tf-secondary);
  color: var(--color-tf-red-dark);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.side-event-card p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.side-event-card ul {
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

/* --- Section 2: Industrial Server Grid --- */
.industrial-card {
  background: #1a1715;
  border: 4px solid #36302a;
}

.server-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.server-node {
  background: #25201c;
  border: 2px solid #453d34;
  border-radius: 6px;
  padding: 1.25rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.server-node:hover {
  transform: translateY(-3px);
  border-color: var(--color-tf-gold);
}

.server-node.match {
  border-color: var(--color-tf-red);
  background: #2c1a19;
}

.server-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.server-status-dot.online {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.server-status-dot.match {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
}

.server-number {
  font-family: var(--font-tf-build);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.server-host {
  font-family: 'Consolas', monospace;
  font-size: 0.85rem;
  color: var(--color-tf-gold);
  margin-bottom: 0.5rem;
}

.server-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.server-ip-badge {
  background: #110f0e;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  color: #cfc4b6;
  display: inline-block;
  border: 1px solid #3a332a;
}

.rotation-bar {
  background: #25201c;
  border: 1px solid #453d34;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.rotation-label {
  font-family: var(--font-tf-secondary);
  font-size: 0.85rem;
  color: var(--color-tf-gold);
  font-weight: bold;
}

.map-pill {
  background: #141210;
  color: #d6cbbe;
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #3c342b;
}

/* --- Section 3: Roster Roll Call --- */
.leadership-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.leader-card {
  background: #fff;
  border: 2px solid var(--color-tf-gold);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.leader-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.leader-title {
  font-family: var(--font-tf-secondary);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--color-tf-red);
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.leader-name {
  font-family: var(--font-tf-build);
  font-size: 1.35rem;
  color: #1e1b18;
  margin-bottom: 0.4rem;
}

.leader-desc {
  font-size: 0.9rem;
  color: #554e44;
}

.competitive-lineup-card {
  background: #fdfaf3;
  border: 2px solid var(--color-tf-blu);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.comp-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.trophy-badge {
  font-size: 1.5rem;
}

.comp-header h3 {
  font-family: var(--font-tf-build);
  font-size: 1.15rem;
  color: var(--color-tf-blu-dark);
}

.comp-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comp-player {
  background: var(--color-tf-blu-dark);
  color: #fff;
  font-family: var(--font-tf-secondary);
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-weight: bold;
}

/* Roster Filter Toolbar */
.roster-filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-parchment-border);
}

.search-input-wrapper {
  flex: 1;
  min-width: 240px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  border: 2px solid var(--color-parchment-border);
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--color-tf-red);
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  background: #e5dac4;
  border: 1px solid #baa98a;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-tf-secondary);
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  background: #dacba7;
}

.filter-btn.active {
  background: var(--color-tf-red);
  color: #fff;
  border-color: var(--color-tf-red-dark);
}

/* Roster Grid */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.roster-badge-card {
  background: #fff;
  border: 1px solid #d4c7b2;
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.15s, box-shadow 0.15s;
}

.roster-badge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-color: var(--color-tf-red);
}

.roster-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e1b18;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.roster-click-btn {
  display: inline-block;
  background: var(--color-tf-gold);
  color: #1e1b18 !important;
  font-family: var(--font-tf-secondary);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  text-decoration: none !important;
  border: 1px solid #b88610;
  box-shadow: 1px 1px 0 #000;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.roster-click-btn:hover {
  background: #ffeb3b;
  color: #000 !important;
  transform: scale(1.08);
}

.roster-tag {
  font-family: var(--font-tf-secondary);
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: bold;
}

.roster-tag.clan {
  background: #ffdedc;
  color: #9c1c1c;
  border: 1px solid #f2a7a4;
}

.roster-tag.reg {
  background: #deebf7;
  color: #2b5680;
  border: 1px solid #a8cce8;
}

/* --- Match Cinema & Video Player --- */
.video-cinema-section {
  background: #191614;
  border: 4px solid #36302a;
}

.cinema-theater-box {
  max-width: 960px;
  margin: 0 auto;
  background: #231f1c;
  border: 3px solid var(--color-tf-gold);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 10px 35px rgba(0,0,0,0.8);
}

.cinema-screen-frame {
  background: #0d0c0a;
  border: 2px solid #363028;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}

.cinema-top-bar {
  background: #171513;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid #2e2822;
  font-family: var(--font-tf-secondary);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.rec-dot {
  width: 9px;
  height: 9px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px #ef4444;
  animation: recBlink 1.5s infinite;
}

@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.cinema-screen-label {
  flex: 1;
  letter-spacing: 1px;
  color: var(--color-tf-gold);
  font-weight: bold;
}

.cinema-watch-btn {
  background: var(--color-tf-red);
  color: #fff !important;
  font-family: var(--font-tf-secondary);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-decoration: none !important;
  border: 1px solid #7d1c16;
  font-weight: bold;
  transition: all 0.15s ease;
  margin-right: 0.5rem;
}

.cinema-watch-btn:hover {
  background: #d6473e;
  color: #fff !important;
  transform: scale(1.04);
}

.cinema-screen-badge {
  background: #2a241e;
  color: #a39583;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  border: 1px solid #42382e;
}

.video-responsive-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
}

.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cinema-details-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #363028;
  flex-wrap: wrap;
}

.video-active-title {
  font-family: var(--font-tf-build);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.video-active-desc {
  font-size: 0.9rem;
  color: var(--color-parchment);
}

.cinema-meta-right {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.video-pill-tag {
  background: #2c251f;
  color: var(--color-tf-gold);
  border: 1px solid #4a3e32;
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.cinema-playlist-wrapper {
  margin-top: 1.25rem;
}

.cinema-playlist-title {
  font-family: var(--font-tf-secondary);
  font-size: 0.85rem;
  color: var(--color-tf-gold);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.cinema-reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.cinema-reel-card {
  background: #141210;
  border: 2px solid #3a3229;
  border-radius: 6px;
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cinema-reel-card:hover {
  border-color: var(--color-tf-gold);
  background: #231f1a;
  transform: translateY(-2px);
}

.cinema-reel-card.active {
  border-color: var(--color-tf-red);
  background: #2a1b1a;
  box-shadow: 0 0 10px rgba(186, 60, 52, 0.4);
}

.reel-thumb-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.reel-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(186, 60, 52, 0.85);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.reel-title {
  font-family: var(--font-tf-secondary);
  font-size: 0.9rem;
  color: #fff;
  font-weight: bold;
  line-height: 1.3;
}

.reel-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* --- Section 5: Jukebox Radio --- */
.jukebox-card {
  background: #171513;
  border: 4px solid #332d27;
}

.jukebox-player-box {
  background: #24201c;
  border: 3px solid var(--color-tf-gold);
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.8);
}

.radio-screen {
  background: #0f1210;
  border: 2px solid #2e362f;
  border-radius: 6px;
  padding: 1.5rem;
  color: #6ee7b7;
  font-family: 'Consolas', monospace;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.9);
}

.station-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #34d399;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(52, 211, 153, 0.25);
  padding-bottom: 0.35rem;
}

.track-display {
  margin-bottom: 0.75rem;
}

.track-title-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.track-artist-text {
  font-size: 0.85rem;
  color: #a7f3d0;
}

.time-display {
  font-size: 0.8rem;
  color: #6ee7b7;
  text-align: right;
  margin-bottom: 0.4rem;
}

.progress-bar-container {
  height: 8px;
  background: #1f2a22;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  transition: width 0.1s linear;
}

/* Radio Controls */
.radio-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.primary-buttons {
  display: flex;
  gap: 0.6rem;
}

.control-btn {
  background: #363029;
  color: #fff;
  border: 2px solid #5a5043;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-tf-build);
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
  transition: all 0.15s;
}

.control-btn:hover {
  background: #484037;
  border-color: var(--color-tf-gold);
}

.control-btn.play-btn {
  background: var(--color-tf-red);
  border-color: #7d1c16;
  min-width: 100px;
}

.control-btn.play-btn:hover {
  background: #d6473e;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-tf-secondary);
  font-size: 0.85rem;
  color: var(--color-tf-gold);
}

.volume-box input[type="range"] {
  accent-color: var(--color-tf-gold);
  cursor: pointer;
}

/* Playlist */
.playlist-container h4 {
  font-family: var(--font-tf-secondary);
  font-size: 0.85rem;
  color: var(--color-tf-gold);
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.playlist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.playlist-item {
  background: #191614;
  border: 1px solid #362f28;
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
}

.playlist-item:hover {
  background: #2f2a24;
  border-color: var(--color-tf-gold);
}

.playlist-item.active {
  background: #3c2f21;
  border-color: var(--color-tf-gold);
  color: #fff;
}

.pl-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.pl-duration {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Section 5: The Guestbook --- */
.guestbook-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
}

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

.guest-form-card {
  background: #fff;
  border: 2px solid var(--color-parchment-border);
  border-radius: 6px;
  padding: 1.8rem;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.form-stamp {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-tf-secondary);
  font-size: 0.75rem;
  color: var(--color-tf-red);
  border: 2px dashed var(--color-tf-red);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.guest-form-card h3 {
  font-family: var(--font-tf-build);
  font-size: 1.3rem;
  color: #1e1b18;
  margin-bottom: 0.3rem;
}

.form-instructions {
  font-size: 0.9rem;
  color: #665b4f;
  margin-bottom: 1.25rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
  min-width: 140px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #383028;
  margin-bottom: 0.3rem;
}

.form-group label .required {
  color: var(--color-tf-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  border: 2px solid var(--color-parchment-border);
  border-radius: 4px;
  background: #faf7f2;
  font-family: inherit;
  color: #1e1b18;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-tf-red);
  background: #fff;
}

.tf-btn-primary {
  background: var(--color-tf-red);
  color: #fff;
  border: 2px solid #521310;
  font-family: var(--font-tf-build);
  font-size: 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
  transition: all 0.15s;
}

.tf-btn-primary:hover {
  background: #d6473e;
}

.tf-btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.feedback-msg {
  font-size: 0.85rem;
  font-weight: 600;
}

.feedback-msg.success { color: #15803d; }
.feedback-msg.error { color: #b91c1c; }

/* Comments Feed */
.comments-feed-wrapper {
  display: flex;
  flex-direction: column;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-parchment-border);
}

.feed-header h3 {
  font-family: var(--font-tf-build);
  font-size: 1.15rem;
  color: #1e1b18;
}

.feed-note {
  font-size: 0.8rem;
  color: #776a5b;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom Scrollbar */
.comments-list::-webkit-scrollbar {
  width: 6px;
}
.comments-list::-webkit-scrollbar-thumb {
  background: var(--color-parchment-border);
  border-radius: 3px;
}

.comment-card {
  background: #fff;
  border: 1px solid #d4c5a9;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.comment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-author {
  font-weight: bold;
  font-size: 0.95rem;
  color: #1e1b18;
}

.comment-class-badge {
  font-family: var(--font-tf-secondary);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-weight: bold;
  background: #25211e;
  color: var(--color-tf-gold);
}

.comment-date {
  font-size: 0.75rem;
  color: #8c7e6e;
}

.comment-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #383028;
  word-break: break-word;
}

.loading-comments, .no-comments {
  text-align: center;
  padding: 2rem;
  font-style: italic;
  color: #776a5b;
}

/* --- Footer --- */
.site-footer {
  background: #110f0e;
  border-top: 4px solid var(--color-tf-red);
  padding: 3rem 1.25rem;
  text-align: center;
  color: #8c8275;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-badge-wrap {
  margin-bottom: 1rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  border-radius: 4px;
  border: 1px solid var(--color-tf-gold);
}

.footer-p {
  color: #ded6cb;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.footer-sub {
  margin-bottom: 1rem;
}

.copyright-note {
  font-size: 0.75rem;
  color: #61584c;
}
