/* Global Styles - Zen Modern Theme */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&family=Playfair+Display:wght@700&display=swap');

:root {
  --bg-color: #0f1014;       /* Deep Ink Black */
  --surface-color: #1a1c23;  /* Charcoal */
  --surface-hover: #23262f;
  --text-primary: #e6e6e6;   /* Off-white */
  --text-secondary: #8b9bb4; /* Muted Blue-Grey */
  --accent-color: #d4af37;   /* Gold/Brass for premium feel */
  --highlight: #ff4757;      /* Crimson for active states/accents */
  
  --font-main: 'Noto Sans JP', sans-serif;
  --font-display: 'Playfair Display', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.site-logo {
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  letter-spacing: 1px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.site-logo:hover {
  opacity: 1;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  
  /* Japanese Character Pattern (Kanji: 聴-Listen, 聞-Hear/Ask, 学-Learn, 練-Practice, 道-Way) */
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg font-family='Noto Serif JP, serif' font-weight='bold' font-size='30' fill='%23282828' opacity='0.4'%3E%3Ctext x='40' y='60' transform='rotate(-10, 40, 60)'%3E聴%3C/text%3E%3Ctext x='140' y='50' transform='rotate(15, 140, 50)'%3E学%3C/text%3E%3Ctext x='30' y='160' transform='rotate(5, 30, 160)'%3E練%3C/text%3E%3Ctext x='150' y='150' transform='rotate(-5, 150, 150)'%3E道%3C/text%3E%3Ctext x='95' y='105' transform='rotate(10, 95, 105)'%3E聞%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  background-attachment: fixed;
}

/* Header */
header {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--highlight);
  border-radius: 2px;
}

header h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 1px;
}

/* Main Layout */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Video Card - Text Only Creative Design */
.video-card {
  background-color: var(--surface-color);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px; /* Slight rounding, mostly sharp */
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

/* Japanese pattern overlay on hover? or just a subtle border accent */
.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--text-secondary);
  transition: background-color 0.3s, width 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  background-color: var(--surface-hover);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.video-card:hover::before {
  background-color: var(--highlight);
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Decorative index number in background */
.card-index {
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  font-family: var(--font-display);
  pointer-events: none;
  transition: transform 0.3s;
}

.video-card:hover .card-index {
  transform: scale(1.1) translate(-10px, -10px);
  color: rgba(255,255,255,0.05);
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  /* If descriptions are commented out, this won't show anyway */
}

/* Player Page Styles */
.player-container {
  max-width: 1000px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s, transform 0.2s;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--highlight);
  transform: translateX(-5px);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

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

.player-info {
  margin-top: 3rem;
  padding: 0 1rem;
  border-left: 2px solid var(--highlight);
  padding-left: 2rem;
}

.player-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
/* Hub Page Styles */
.hero {
  padding: 8rem 2rem;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.main-title {
  font-family: var(--font-display);
  font-size: 5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.main-title span {
  color: var(--accent-color);
}

.tagline {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.hub-container {
  max-width: 1200px;
  margin-top: -2rem;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.hub-card {
  background-color: var(--surface-color);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.hub-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.03));
  opacity: 0;
  transition: opacity 0.4s;
}

.hub-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hub-card:hover::after {
  opacity: 1;
}

.card-icon {
  font-size: 3.5rem;
  color: var(--accent-color);
  background: rgba(212, 175, 55, 0.1);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: transform 0.4s;
}

.hub-card:hover .card-icon {
  transform: rotate(5deg) scale(1.1);
}

.card-details h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card-details p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.coming-soon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.section-disabled {
  opacity: 0.6;
  filter: grayscale(0.5);
  cursor: default;
}

.hub-footer {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .main-title { font-size: 3.5rem; }
  .hub-card { flex-direction: column; text-align: center; }
}

/* Script Viewer Styles (Gekijou) */
.script-viewer {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--surface-color);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.script-header {
  margin-bottom: 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2rem;
}

.script-hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.script-hero-desc {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.1rem;
}

.script-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.script-line {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 1.5rem;
  transition: background 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 8px;
  position: relative;
}

.script-line:hover {
  background: rgba(212, 175, 55, 0.05);
}

.character-name {
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  padding-top: 0.25rem;
  opacity: 0.8;
}

.dialogue-text {
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 300;
}

@media (max-width: 600px) {
  .script-line {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .script-hero-title {
    font-size: 2.2rem;
  }
}

