:root {
  --bg-dark: #121212;
  --bg-header: #161616;
  --card-bg: #1c1e24;
  --card-border: #2a2d36;
  --gold: #facc15;
  --gold-hover: #fde047;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Bar */
.tbb-navbar {
  background-color: var(--bg-header);
  border-bottom: 1px solid #262626;
  padding: 16px 0;
}

.tbb-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tbb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.tbb-logo img {
  height: 44px;
  max-height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.tbb-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.tbb-nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.tbb-nav-links a:hover,
.tbb-nav-links a.active {
  color: var(--gold);
}

/* Hero Section */
.tbb-hero {
  text-align: center;
  padding: 64px 24px 56px;
  border-bottom: 1px solid #262626;
  background: radial-gradient(circle at top, #1e1e1e 0%, #121212 75%);
}

.tbb-badge {
  display: inline-block;
  border: 1px solid rgba(250, 204, 21, 0.4);
  background-color: rgba(250, 204, 21, 0.08);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

.tbb-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.tbb-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Buttons */
.tbb-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.tbb-btn-primary {
  background-color: var(--gold);
  color: #121212;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tbb-btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
}

.tbb-btn-secondary {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tbb-btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Main Content & Grids */
.tbb-section {
  padding: 56px 0 80px;
  flex: 1;
}

.tbb-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  margin-bottom: 8px;
  text-align: center;
}

.tbb-section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 36px;
  font-size: 0.98rem;
}

.tbb-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tbb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tbb-single-card {
  max-width: 650px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .tbb-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tbb-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.tbb-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tbb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.tbb-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tbb-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.tbb-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tbb-card p:last-child {
  margin-bottom: 0;
}

.tbb-card-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: auto;
  transition: color 0.2s ease;
}

.tbb-card-link:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* Responsive Video Embed */
.tbb-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 56px;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  background-color: #000;
}

.tbb-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Social Links Row */
.tbb-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tbb-social-pill {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  color: #e5e7eb;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tbb-social-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Overview Tabs */
.tbb-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tbb-tab-btn {
  background-color: var(--card-bg);
  color: #d1d5db;
  border: 1px solid var(--card-border);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tbb-tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tbb-tab-btn.active {
  background-color: var(--gold);
  color: #121212;
  border-color: var(--gold);
}

.tbb-tab-panel {
  display: none;
}

.tbb-tab-panel.active {
  display: block;
}

/* Footer */
.tbb-footer {
  border-top: 1px solid #262626;
  padding: 28px 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}
/* =========================================
   CHARACTER PROFILE PAGES
   ========================================= */

.character-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: #a0a8b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #ffffff;
}

/* Split Layout: Image Left, Info Right */
.character-profile-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

/* Left Column: Full Body Portrait */
.character-portrait-column {
  position: sticky;
  top: 2rem;
}

.portrait-frame {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.character-full-body {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Right Column: Info & Lore */
.character-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.character-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e63946; /* Accent red - swap to match your site's theme color */
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.character-name {
  font-size: 2.75rem;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.character-tagline {
  font-style: italic;
  color: #b8c0cc;
  margin: 0;
  font-size: 1.05rem;
}

/* Quick Dossier Grid */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.dossier-item {
  display: flex;
  flex-direction: column;
}

.dossier-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8d96a5;
  margin-bottom: 0.25rem;
}

.dossier-value {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
}

/* Lore Sections */
.character-section {
  margin-bottom: 1.75rem;
}

.character-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  border-left: 3px solid #e63946;
  padding-left: 0.75rem;
}

.character-section p {
  line-height: 1.7;
  color: #d1d5db;
  margin: 0;
}

/* Mobile Responsive Stack */
@media (max-width: 850px) {
  .character-profile-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .character-portrait-column {
    position: static;
  }

  .character-full-body {
    max-height: 550px;
  }
}
