/* Order Guide Videos — UX-UI YouTube Video Guide Embed Hub
   Tokens from index.html & guide-order.css:
   --ink (#14213D), --ink-dark (#0B1526), --gold (#E3A008), --gold-dark (#B87F04),
   --paper (#FAF8F4), --paper-alt (#F3F0E9), --line (#E4DFD3), --white (#FFFFFF) */

.ogv-mount {
  margin-top: 20px;
}

.ogv-hub-section .ogv-mount {
  margin-top: 0;
}

/* Shared CMYK registration bar matching .ot-reg */
.ogv-cmyk {
  display: flex;
  height: 3px;
  width: 100%;
}
.ogv-cmyk i {
  flex: 1;
}
.ogv-cmyk i:nth-child(1) { background: #00AEEF; }
.ogv-cmyk i:nth-child(2) { background: #EC008C; }
.ogv-cmyk i:nth-child(3) { background: #FFF200; }
.ogv-cmyk i:nth-child(4) { background: var(--ink, #14213D); }

/* Shared 16:9 Stage */
.ogv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-dark, #0B1526);
  border: 1px solid rgba(20, 33, 61, 0.14);
}

.ogv-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ogv-facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--ink-dark, #0B1526);
  color: var(--white, #FFFFFF);
  text-align: left;
  cursor: pointer;
}

.ogv-facade-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.25s ease;
  opacity: 0.86;
}

.ogv-facade:hover .ogv-facade-img,
.ogv-facade:focus-visible .ogv-facade-img {
  transform: scale(1.03);
  opacity: 0.94;
}

.ogv-facade-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 21, 38, 0.36) 0%,
    rgba(11, 21, 38, 0.22) 42%,
    rgba(11, 21, 38, 0.88) 100%
  );
  pointer-events: none;
}

.ogv-stage-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}

.ogv-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold, #E3A008);
  color: var(--ink-dark, #0B1526);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ogv-duration {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(11, 21, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.ogv-play-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}

.ogv-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold, #E3A008);
  color: var(--ink-dark, #0B1526);
  box-shadow: 0 10px 28px rgba(11, 21, 38, 0.45), 0 0 0 6px rgba(227, 160, 8, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ogv-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.ogv-facade:hover .ogv-play,
.ogv-facade:focus-visible .ogv-play {
  transform: scale(1.06);
  background: #f0b122;
  box-shadow: 0 12px 32px rgba(11, 21, 38, 0.55), 0 0 0 9px rgba(227, 160, 8, 0.32);
}

.ogv-stage-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  pointer-events: none;
}

.ogv-stage-caption h4,
.ogv-stage-caption h3 {
  margin: 0;
  color: #FFFFFF;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Upcoming / Unconfigured YouTube State */
.ogv-empty-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #FFFFFF;
}

.ogv-empty-stage .ogv-facade-img {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.ogv-empty-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.ogv-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FCE3A3;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.ogv-status-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold, #E3A008);
  display: inline-block;
}

.ogv-empty-content h4 {
  margin: 0;
  color: #FFFFFF;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.ogv-empty-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.45;
  max-width: 54ch;
}

.ogv-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.ogv-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--gold, #E3A008);
  color: var(--ink-dark, #0B1526);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.ogv-empty-link:hover {
  background: #f0b122;
}

/* =========================================================
   MODE A: COMPACT HOMEPAGE WIDGET (inside #dat-in-online)
   ========================================================= */
.ogv-compact {
  background: var(--white, #FFFFFF);
  border: 1px solid var(--line, #E4DFD3);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(20, 33, 61, 0.06));
}

.ogv-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px 9px;
  background: var(--paper-alt, #F3F0E9);
  border-bottom: 1px solid var(--line, #E4DFD3);
}

.ogv-compact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink, #14213D);
}

.ogv-compact-eyebrow svg {
  width: 15px;
  height: 15px;
  color: var(--proof-red, #C0392B);
  flex-shrink: 0;
}

.ogv-compact-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ogv-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line, #E4DFD3);
  background: var(--white, #FFFFFF);
  color: var(--ink, #14213D);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ogv-icon-btn:hover,
.ogv-icon-btn:focus-visible {
  border-color: var(--ink, #14213D);
  background: var(--ink-tint, #EEF1F7);
}

.ogv-compact-body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 10px;
}

.ogv-compact-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ogv-compact-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft, #5B564F);
  max-width: none !important;
}

.ogv-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.ogv-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--line, #E4DFD3);
  background: var(--paper, #FAF8F4);
  color: var(--ink, #14213D);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ogv-chip b {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--gold-dark, #B87F04);
}

.ogv-chip:hover {
  border-color: var(--ink, #14213D);
  background: var(--ink-tint, #EEF1F7);
}

.ogv-chip.is-active {
  background: var(--ink, #14213D);
  border-color: var(--ink, #14213D);
  color: #FFFFFF;
}

.ogv-chip.is-active b {
  color: var(--gold, #E3A008);
}

/* =========================================================
   MODE B: FULL THEATER HUB (/huong-dan-dat-in-online/)
   Golden Ratio ~62% : 38% split on desktop
   ========================================================= */
.ogv-theater {
  display: grid;
  grid-template-columns: minmax(0, 1.618fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}

.ogv-theater-main {
  background: var(--white, #FFFFFF);
  border: 1px solid var(--line, #E4DFD3);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 8px 24px -8px rgba(20, 33, 61, 0.14));
}

.ogv-theater-stage-wrap {
  padding: 14px 14px 0;
}

.ogv-theater-info {
  padding: 16px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ogv-theater-info-copy {
  flex: 1 1 320px;
}

.ogv-theater-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark, #B87F04);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ogv-theater-info h3 {
  margin: 6px 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(19px, 2vw, 23px);
  color: var(--ink-dark, #0B1526);
  line-height: 1.25;
}

.ogv-theater-info p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft, #5B564F);
}

.ogv-theater-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--ink, #14213D);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.ogv-theater-cta:hover,
.ogv-theater-cta:focus-visible {
  background: var(--ink-dark, #0B1526);
}

/* Playlist Sidebar */
.ogv-playlist {
  background: var(--paper, #FAF8F4);
  border: 1px solid var(--line, #E4DFD3);
  border-radius: var(--radius-lg, 16px);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.ogv-playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--line, #E4DFD3);
}

.ogv-playlist-head strong {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink-dark, #0B1526);
}

.ogv-playlist-head span {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-soft, #5B564F);
}

.ogv-playlist-items {
  display: grid;
  gap: 8px;
}

.ogv-pl-item {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line, #E4DFD3);
  border-left: 3px solid transparent;
  background: var(--white, #FFFFFF);
  color: var(--ink-dark, #0B1526);
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ogv-pl-item:hover {
  border-color: var(--ink, #14213D);
  background: var(--ink-tint, #EEF1F7);
}

.ogv-pl-item.is-active {
  background: var(--ink, #14213D);
  border-color: var(--ink, #14213D);
  border-left-color: var(--gold, #E3A008);
  color: #FFFFFF;
  box-shadow: 0 6px 16px -8px rgba(11, 21, 38, 0.45);
}

.ogv-pl-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-alt, #F3F0E9);
  color: var(--ink, #14213D);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
}

.ogv-pl-item.is-active .ogv-pl-num {
  background: var(--gold, #E3A008);
  color: var(--ink-dark, #0B1526);
}

.ogv-pl-copy {
  min-width: 0;
}

.ogv-pl-title {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
}

.ogv-pl-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-soft, #5B564F);
}

.ogv-pl-item.is-active .ogv-pl-status {
  color: rgba(255, 255, 255, 0.78);
}

.ogv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--gold, #E3A008);
}

.ogv-dot.is-ready {
  background: #16a34a;
}

.ogv-pl-dur {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft, #5B564F);
}

.ogv-pl-item.is-active .ogv-pl-dur {
  color: var(--gold, #E3A008);
}

/* =========================================================
   CINEMA LIGHTBOX MODAL
   ========================================================= */
.ogv-modal[hidden] {
  display: none;
}

.ogv-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 21, 38, 0.84);
  backdrop-filter: blur(6px);
}

.ogv-modal-dialog {
  width: min(960px, 100%);
  background: var(--ink-dark, #0B1526);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
}

.ogv-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ogv-modal-head strong {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15px;
  color: #FFFFFF;
}

.ogv-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ogv-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.ogv-modal-body {
  padding: 14px 16px 16px;
}

/* =========================================================
   ADMIN VIDEO PREVIEW / PASTE LINK TOOLBAR (?admin-video=1)
   ========================================================= */
.ogv-admin-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed var(--gold-dark, #B87F04);
  background: #FFF9E9;
  color: var(--ink-dark, #0B1526);
  display: grid;
  gap: 8px;
}

.ogv-admin-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink, #14213D);
}

.ogv-admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ogv-admin-input {
  flex: 1 1 240px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line, #E4DFD3);
  background: #FFFFFF;
  color: var(--ink-dark, #0B1526);
  font-size: 13px;
}

.ogv-admin-btn {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 0;
  background: var(--ink, #14213D);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.ogv-admin-btn--gold {
  background: var(--gold, #E3A008);
  color: var(--ink-dark, #0B1526);
}

.ogv-admin-msg {
  font-size: 12px;
  color: #166534;
  min-height: 16px;
}

/* =========================================================
   RESPONSIVE & DARK MODE SUPPORT
   ========================================================= */
@media (max-width: 960px) {
  .ogv-theater {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ogv-play {
    width: 56px;
    height: 56px;
  }
  .ogv-chip {
    min-height: 40px;
  }
  .ogv-compact-head {
    flex-wrap: wrap;
  }
  .ogv-stage-caption h4,
  .ogv-stage-caption h3 {
    font-size: 13.5px;
  }
  .ogv-empty-stage {
    padding: 12px;
  }
  .ogv-empty-content p {
    display: none;
  }
}

html[data-theme="dark"] .ogv-theater-main {
  background: #18263d;
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .ogv-theater-info h3 {
  color: #f5f7fb;
}
html[data-theme="dark"] .ogv-theater-info p {
  color: #c5d0df;
}
html[data-theme="dark"] .ogv-theater-cta {
  background: var(--gold, #E3A008);
  color: var(--ink-dark, #0B1526);
}
html[data-theme="dark"] .ogv-playlist {
  background: #142034;
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .ogv-playlist-head {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .ogv-playlist-head strong {
  color: #f5f7fb;
}
html[data-theme="dark"] .ogv-playlist-head span {
  color: #b9c5d7;
}
html[data-theme="dark"] .ogv-pl-item {
  background: #1b2b44;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f7fb;
}
html[data-theme="dark"] .ogv-pl-item:hover {
  background: #223553;
  border-color: var(--gold, #E3A008);
}
html[data-theme="dark"] .ogv-pl-item.is-active {
  background: #0b1526;
  border-color: var(--gold, #E3A008);
}
html[data-theme="dark"] .ogv-pl-num {
  background: #273c5d;
  color: #f5f7fb;
}
html[data-theme="dark"] .ogv-pl-status,
html[data-theme="dark"] .ogv-pl-dur {
  color: #b9c5d7;
}
html[data-theme="dark"] .ogv-compact {
  background: #162338;
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] .ogv-compact-head {
  background: #111b2c;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .ogv-compact-eyebrow {
  color: #f8fafc;
}
html[data-theme="dark"] .ogv-icon-btn {
  background: #1d2d47;
  border-color: rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
}
html[data-theme="dark"] .ogv-icon-btn:hover,
html[data-theme="dark"] .ogv-icon-btn:focus-visible {
  background: #273c5d;
  border-color: var(--gold, #E3A008);
  color: #ffffff;
}
html[data-theme="dark"] .ogv-compact-desc {
  color: #cbd5e1;
}
html[data-theme="dark"] .ogv-chip {
  background: #1d2d47;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}
html[data-theme="dark"] .ogv-chip b {
  color: #fbbf24;
}
html[data-theme="dark"] .ogv-chip:hover {
  background: #263a5a;
  border-color: var(--gold, #E3A008);
}
html[data-theme="dark"] .ogv-chip.is-active {
  background: var(--gold, #E3A008);
  border-color: var(--gold, #E3A008);
  color: #0b1526;
}
html[data-theme="dark"] .ogv-chip.is-active b {
  color: #0b1526;
}
