/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --radius-xs: 10px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --header-height: 62px;
  --sidebar-width: 240px;
  --accent-h: 0;
  --accent-s: 88%;
  --accent-l: 58%;
}

html[data-accent='red'] {
  --accent-h: 0;
  --accent-s: 88%;
  --accent-l: 58%;
}

html[data-accent='blue'] {
  --accent-h: 214;
  --accent-s: 88%;
  --accent-l: 58%;
}

html[data-accent='orange'] {
  --accent-h: 28;
  --accent-s: 92%;
  --accent-l: 56%;
}

html[data-accent='green'] {
  --accent-h: 145;
  --accent-s: 74%;
  --accent-l: 42%;
}

html[data-accent='purple'] {
  --accent-h: 268;
  --accent-s: 82%;
  --accent-l: 63%;
}

html[data-accent='pink'] {
  --accent-h: 332;
  --accent-s: 87%;
  --accent-l: 63%;
}

html[data-theme='light'] {
  --bg: #f9f9fb;
  --bg-rim: #eceef7;
  --surface: #ffffff;
  --surface-soft: #f4f6fb;
  --text: #0f1115;
  --text-soft: #5f6675;
  --border: #dce1ea;
  --shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  --header-bg: rgba(250, 251, 255, 0.84);
  --header-border: #d8deeb;
  --bg-glow-a: hsl(var(--accent-h) calc(var(--accent-s) - 18%) 68% / 0.28);
  --bg-glow-b: hsl(calc(var(--accent-h) + 52) 70% 66% / 0.18);
}

html[data-theme='dark'] {
  --bg: #0f1115;
  --bg-rim: #181b21;
  --surface: #1b1f27;
  --surface-soft: #202632;
  --text: #f4f6fb;
  --text-soft: #a8b0c2;
  --border: #2c3443;
  --shadow: 0 16px 34px rgba(4, 9, 18, 0.46);
  --header-bg: rgba(15, 17, 21, 0.88);
  --header-border: #293141;
  --bg-glow-a: hsl(var(--accent-h) calc(var(--accent-s) - 22%) 40% / 0.22);
  --bg-glow-b: hsl(calc(var(--accent-h) + 40) 42% 35% / 0.2);
}

:root {
  --accent: hsl(var(--accent-h) var(--accent-s) var(--accent-l));
  --accent-strong: hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) - 12%));
  --accent-soft: hsl(var(--accent-h) calc(var(--accent-s) - 12%) calc(var(--accent-l) + 8%) / 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: 'BIZ UDPGothic', sans-serif;
  background:
    radial-gradient(circle at 8% -4%, var(--bg-glow-a), transparent 36%),
    radial-gradient(circle at 92% -2%, var(--bg-glow-b), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg-rim));
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
label:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.yt-shell {
  min-height: 100dvh;
}

.nav-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 50;
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
}

.site-header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  grid-gap: 1rem;
  gap: 1rem;
  padding: 0 1rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.menu-trigger {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.menu-trigger span {
  display: block;
  width: 1.02rem;
  height: 2.4px;
  background: var(--text);
  border-radius: 99px;
  margin: 1.6px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 1.55rem;
  height: 1.08rem;
  border-radius: 0.38rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0.5px);
}

.brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.03rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search {
  width: min(720px, 100%);
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-search input {
  width: 100%;
  min-height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 0.95rem;
  font: inherit;
}

.header-search button {
  min-height: 2.35rem;
  min-width: 3.6rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  -webkit-text-orientation: mixed;
          text-orientation: mixed;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mode-toggle {
  display: flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.mode-toggle button {
  min-height: 1.8rem;
  padding: 0 0.58rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
}

.mode-toggle button.is-active {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
}

.accent-picker {
  display: flex;
  gap: 0.25rem;
  padding: 0.24rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.accent-picker button {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--swatch);
  cursor: pointer;
}

.accent-picker button.is-active {
  border-color: color-mix(in srgb, #fff 75%, var(--text) 25%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}

.accent-picker button[data-color='red'] {
  --swatch: hsl(0 88% 58%);
}

.accent-picker button[data-color='blue'] {
  --swatch: hsl(214 88% 58%);
}

.accent-picker button[data-color='orange'] {
  --swatch: hsl(28 92% 56%);
}

.accent-picker button[data-color='green'] {
  --swatch: hsl(145 74% 42%);
}

.accent-picker button[data-color='purple'] {
  --swatch: hsl(268 82% 63%);
}

.accent-picker button[data-color='pink'] {
  --swatch: hsl(332 87% 63%);
}

.accent-locked {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.78rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.lang-switcher a {
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text-soft);
}

.lang-switcher a[aria-current='page'] {
  color: var(--text);
}

.yt-body {
  padding-top: var(--header-height);
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.side-nav {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-height);
  height: calc(100dvh - var(--header-height));
  overflow: auto;
  padding: 1rem 0.65rem;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 72%, var(--surface) 28%);
}

.side-nav-main {
  display: grid;
  grid-gap: 0.35rem;
  gap: 0.35rem;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.72rem;
  text-decoration: none;
  color: var(--text-soft);
  border: 1px solid transparent;
}

.side-link:hover {
  background: var(--surface);
  border-color: var(--border);
}

.side-link.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 20%, var(--surface) 80%);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border) 66%);
}

.side-icon {
  width: 1.15rem;
  text-align: center;
  font-size: 0.93rem;
}

.side-label {
  font-size: 0.92rem;
  font-weight: 700;
}

.side-featured {
  margin-top: 1rem;
  padding-top: 0.92rem;
  border-top: 1px solid var(--border);
}

.side-featured h2 {
  margin: 0 0 0.5rem;
  font-size: 0.84rem;
  color: var(--text-soft);
  letter-spacing: 0.03em;
}

.side-featured ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 0.28rem;
  gap: 0.28rem;
}

.side-featured a {
  display: block;
  border-radius: var(--radius-xs);
  padding: 0.44rem 0.58rem;
  text-decoration: none;
  color: var(--text-soft);
}

.side-featured a:hover {
  background: var(--surface);
  color: var(--text);
}

.yt-main {
  padding: 1.2rem 1.35rem 2.5rem;
}

.page-intro {
  margin-bottom: 0.9rem;
}

.page-intro h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
}

.page-intro p {
  margin: 0.4rem 0 0;
  color: var(--text-soft);
}

.topic-strip {
  margin: 0.85rem 0 0.95rem;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.topic-chip {
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  padding: 0.45rem 0.84rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.topic-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
}

.section-title {
  margin: 1.35rem 0 0.75rem;
  font-size: 1.08rem;
  font-family: 'Space Grotesk', sans-serif;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 1.1rem 0.92rem;
  gap: 1.1rem 0.92rem;
}

.video-card {
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.video-thumb-link {
  display: block;
}

.video-thumb-frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.video-body {
  padding: 0.62rem 0.15rem 0.35rem;
  display: grid;
  grid-gap: 0.34rem;
  gap: 0.34rem;
}

.video-body h3,
.video-body p {
  margin: 0;
}

.video-body h3 a {
  text-decoration: none;
}

.video-body h3 {
  font-size: 1rem;
  line-height: 1.38;
}

.video-body p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.watch-layout {
  display: grid;
  grid-gap: 1.25rem;
  gap: 1.25rem;
}

.video-detail {
  display: grid;
  grid-gap: 0.82rem;
  gap: 0.82rem;
}

.video-detail h1 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.62rem);
}

.player-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #090b0f;
}

.player-wrap p {
  margin: 0;
  padding: 0.7rem 0.82rem;
  color: #d2d9e9;
  font-size: 0.86rem;
  background: #101622;
}

.player-wrap video,
.player-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.watch-related .video-grid {
  grid-template-columns: 1fr;
}

.panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.95rem;
}

.channel-meta p {
  margin: 0.3rem 0 0;
}

.channel-hero {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  padding: 1.05rem;
  border: 1px solid color-mix(in srgb, var(--channel-primary) 58%, var(--border) 42%);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--channel-accent) 46%, transparent), transparent 48%),
    linear-gradient(140deg, color-mix(in srgb, var(--channel-primary) 82%, #fff 18%), var(--channel-accent));
  color: var(--channel-text);
  display: grid;
  grid-gap: 0.7rem;
  gap: 0.7rem;
}

.channel-hero h2 {
  margin: 0;
  font-family: var(--channel-heading-font);
}

.channel-hero p {
  margin: 0;
  font-family: var(--channel-body-font);
}

.hero-cta {
  width: -moz-fit-content;
  width: fit-content;
  min-height: 2.2rem;
  border-radius: 999px;
  padding: 0 0.92rem;
  border: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
}

.not-found-panel {
  max-width: 540px;
}

.not-found-panel h1,
.not-found-panel p {
  margin: 0 0 0.55rem;
}

.subtle-note {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.search-bar {
  display: flex;
  gap: 0.45rem;
}

.search-bar input {
  flex: 1 1;
  min-height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0 0.9rem;
  font: inherit;
}

.search-bar button {
  min-height: 2.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.9rem;
  font: inherit;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.nav-overlay {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(4, 8, 18, 0.52);
  z-index: 35;
  transition: opacity 0.2s ease-out;
}

@media (min-width: 1101px) {
  .watch-layout {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    align-items: start;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .yt-body {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .side-nav {
    padding-inline: 0.45rem;
  }

  .side-link {
    justify-content: center;
    padding-inline: 0.25rem;
  }

  .side-label,
  .side-featured {
    display: none;
  }

  .menu-trigger {
    display: none;
  }

  .header-search {
    width: min(460px, 100%);
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding-inline: 0.7rem;
  }

  .brand-text {
    max-width: 120px;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 5;
    width: 100%;
    margin-top: -0.15rem;
    margin-bottom: 0.45rem;
  }

  .header-right {
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .theme-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .accent-locked {
    display: none;
  }

  .yt-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-nav {
    position: fixed;
    z-index: 40;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: min(80vw, 320px);
    transform: translateX(-102%);
    transition: transform 0.22s ease-out;
    box-shadow: var(--shadow);
    background: var(--surface);
  }

  .yt-main {
    padding: 1rem 0.72rem 2rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-toggle:checked ~ .yt-body .side-nav {
    transform: translateX(0);
  }

  .nav-toggle:checked ~ .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

