/* 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;
}

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);
}
