/* ==========================================================================
   株式会社 映像企画センター (EKC) - Stylesheet
   Cinema Studio Archive UI (Sophisticated & Independent)
   ========================================================================== */

/* noto-sans-jp-regular - japanese */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/noto-sans-jp-v57-japanese-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* noto-sans-jp-700 - japanese */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/noto-sans-jp-v57-japanese-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-active: #e2e8f0;
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  /* Cinema Studio Accent: Premium Cinema Gold / Amber */
  --brand-color: #b47820;
  --brand-color-hover: #966114;
  --brand-dark: #0f172a;
  --badge-bg: rgba(180, 120, 32, 0.08);
  --badge-text: #b47820;
  
  --sidebar-width: 240px;
  --header-height: 60px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-popup: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  font-size: 15px;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Header (Corporate Studio Standard)
   ========================================================================== */
.ekc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.ekc-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ekc-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.ekc-icon-button:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

/* EKC Studio Logo */
.ekc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.ekc-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.ekc-logo__mark-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ekc-logo__text-group {
  display: flex;
  flex-direction: column;
}

.ekc-logo__title {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.2;
  color: var(--text-primary);
}

.ekc-logo__subtitle {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
}

/* General Corporate Search Bar (Standard Corporate Style) */
.ekc-header__center {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.ekc-search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fafc;
  padding: 0 12px;
  gap: 8px;
  transition: all var(--transition-fast);
}

.ekc-search-bar:focus-within {
  border-color: var(--brand-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(180, 120, 32, 0.12);
}

.ekc-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.ekc-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: var(--text-primary);
  background: transparent;
}

/* Header Right */
.ekc-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ekc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.ekc-btn--primary {
  background: var(--brand-color);
  color: #fff;
  box-shadow: 0 1px 3px rgba(180, 120, 32, 0.25);
}

.ekc-btn--primary:hover {
  background: var(--brand-color-hover);
  transform: translateY(-1px);
}

.ekc-btn--secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.ekc-btn--secondary:hover {
  background: var(--bg-active);
}

.ekc-btn--outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.ekc-btn--outline:hover {
  background: var(--bg-hover);
}

/* ==========================================================================
   Layout Shell
   ========================================================================== */
.ekc-shell {
  display: flex;
  flex: 1;
  position: relative;
}

/* Mobile Sidebar Backdrop */
.ekc-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 85;
}

.ekc-sidebar-backdrop.is-open {
  display: block;
}

/* Sidebar */
.ekc-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  transition: transform var(--transition-normal);
  z-index: 90;
}

.ekc-sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.ekc-sidebar__heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 12px 4px;
}

.ekc-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.ekc-nav-item svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.ekc-nav-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.ekc-nav-item.is-active {
  background-color: var(--badge-bg);
  color: var(--brand-color);
  font-weight: 700;
}

.ekc-nav-item.is-active svg {
  color: var(--brand-color);
}

.ekc-sidebar__footer {
  margin-top: auto;
  padding: 16px 12px 8px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Main Content Area */
.ekc-content {
  flex: 1;
  min-width: 0;
  padding: 24px 32px;
  background: var(--bg-main);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   Home View
   ========================================================================== */
.ekc-view {
  display: none;
}

.ekc-view.is-visible {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero / Studio Header Banner */
.ekc-channel-banner {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 60%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ekc-channel-banner::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(180, 120, 32, 0.22) 0%, rgba(180, 120, 32, 0) 70%);
  pointer-events: none;
}

.ekc-channel-header {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.ekc-channel-avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.2);
}

.ekc-channel-info {
  flex: 1;
}

.ekc-channel-title {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.ekc-verified-badge {
  display: inline-flex;
  color: #fbbf24;
}

.ekc-channel-meta {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ekc-channel-lead {
  font-size: 14px;
  color: #e2e8f0;
  max-width: 740px;
  line-height: 1.6;
}

.ekc-channel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Category Filter Chips */
.ekc-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ekc-chips::-webkit-scrollbar {
  display: none;
}

.ekc-chip {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.ekc-chip:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.ekc-chip.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  font-weight: 600;
}

/* Section Shelf */
.ekc-shelf {
  margin-bottom: 44px;
}

.ekc-shelf__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.ekc-shelf__title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ekc-shelf__tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-color);
  letter-spacing: 0.5px;
}

.ekc-shelf__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.ekc-shelf__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ekc-shelf__more:hover {
  text-decoration: underline;
}

/* Shelf Grid */
.ekc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* Feature/Content Card */
.ekc-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.ekc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* Thumbnail Area */
.ekc-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #e2e8f0;
  overflow: hidden;
}

.ekc-card__thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ekc-card__thumb img,
.ekc-card__thumb picture img,
.ekc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.ekc-card:hover .ekc-card__thumb img,
.ekc-card:hover .ekc-card__thumb picture img,
.ekc-card:hover .ekc-card__img {
  transform: scale(1.04);
}

.ekc-dummy-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 16px;
  position: relative;
}

.ekc-dummy-visual--services {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.ekc-dummy-visual--program {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
}

.ekc-dummy-visual--vp {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

.ekc-dummy-visual--event {
  background: linear-gradient(135deg, #701a75 0%, #a21caf 100%);
}

.ekc-dummy-visual--tech {
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
}

.ekc-dummy-visual--company {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.ekc-dummy-visual__icon {
  margin-bottom: 8px;
  opacity: 0.9;
}

.ekc-dummy-visual__label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ekc-dummy-visual__sub {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

.ekc-card__badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Card Body */
.ekc-card__body {
  padding: 14px 16px 16px;
  display: flex;
  gap: 12px;
  flex: 1;
}

.ekc-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.ekc-card__content {
  flex: 1;
  min-width: 0;
}

.ekc-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ekc-card__meta {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ekc-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Detail View
   ========================================================================== */
.ekc-watch-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.ekc-watch-main {
  min-width: 0;
}

.ekc-player-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  position: relative;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.ekc-player-visual {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 24px;
  background: radial-gradient(circle at center, #1e293b 0%, #090d16 100%);
  position: relative;
}

.ekc-player-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  pointer-events: none;
}

.ekc-player-visual__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.ekc-player-badge {
  display: inline-block;
  background: var(--brand-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.ekc-player-visual__title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ekc-player-visual__sub {
  font-size: 13.5px;
  opacity: 0.9;
  color: #cbd5e1;
}

.ekc-player-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 18px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 12px;
}

.ekc-player-controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Watch Info Bar */
.ekc-watch-header {
  margin-bottom: 16px;
}

.ekc-watch-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.ekc-watch-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.ekc-watch-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ekc-watch-author__avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--brand-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.ekc-watch-author__name {
  font-size: 15px;
  font-weight: 700;
}

.ekc-watch-author__sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.ekc-watch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Detail Description Box */
.ekc-watch-desc-box {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.ekc-watch-desc-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-color);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

.ekc-watch-desc-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-line;
}

.ekc-watch-desc-extra {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Company Overview Table */
.ekc-company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.ekc-company-table th,
.ekc-company-table td {
  padding: 13px 18px;
  font-size: 13.5px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.ekc-company-table th {
  width: 130px;
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.ekc-company-table td {
  color: var(--text-primary);
  line-height: 1.6;
}

.ekc-company-table tr:last-child th,
.ekc-company-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Interactive FAQ Section
   ========================================================================== */
.ekc-faq-section {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.ekc-faq-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.ekc-faq-title {
  font-size: 17px;
  font-weight: 700;
}

.ekc-faq-filter {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Prompt Box */
.ekc-faq-prompt-box {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.ekc-faq-prompt-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.ekc-faq-prompt-input {
  flex: 1;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.ekc-faq-prompt-input:hover {
  border-color: #94a3b8;
}

/* FAQ Threads */
.ekc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ekc-faq-item {
  display: flex;
  gap: 12px;
}

.ekc-faq-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.ekc-faq-body {
  flex: 1;
}

.ekc-faq-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ekc-faq-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.ekc-faq-time {
  font-size: 11px;
  color: var(--text-muted);
}

.ekc-faq-question {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* Official Reply */
.ekc-faq-reply {
  margin-top: 10px;
  background: #f8fafc;
  border-left: 3px solid var(--brand-color);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ekc-faq-reply-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-color);
  margin-bottom: 4px;
}

.ekc-faq-reply-text {
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
}

.ekc-faq-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.ekc-faq-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.ekc-faq-action-btn:hover {
  color: var(--brand-color);
}

/* ==========================================================================
   Right Column: Related Cards
   ========================================================================== */
.ekc-watch-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ekc-side-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.ekc-side-card {
  display: flex;
  gap: 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 8px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ekc-side-card:hover {
  background: var(--bg-hover);
  border-color: #cbd5e1;
  transform: translateX(2px);
}

.ekc-side-card__thumb {
  width: 130px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #e2e8f0;
}

.ekc-side-card__content {
  flex: 1;
  min-width: 0;
}

.ekc-side-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ekc-side-card__category {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.ekc-side-card__badge {
  font-size: 10px;
  color: var(--brand-color);
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.ekc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ekc-modal-backdrop.is-open {
  display: flex;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ekc-modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  box-shadow: var(--shadow-popup);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ekc-modal__header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ekc-modal__title {
  font-size: 17px;
  font-weight: 700;
}

.ekc-modal__body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.ekc-form-group {
  margin-bottom: 16px;
}

.ekc-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.ekc-form-input,
.ekc-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
  background: #ffffff;
}

.ekc-form-input:focus,
.ekc-form-textarea:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(180, 120, 32, 0.12);
}

.ekc-form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* Radio Button Group */
.ekc-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.ekc-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #fafafa;
  transition: all var(--transition-fast);
  user-select: none;
}

.ekc-radio-label:hover {
  background: var(--bg-hover);
  border-color: #cbd5e1;
}

.ekc-radio-label input[type="radio"] {
  accent-color: var(--brand-color);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Modal Form Actions */
.ekc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* Modal Success State */
.ekc-modal-success {
  text-align: center;
  padding: 24px 12px;
}

.ekc-modal-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ekc-modal-success__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ekc-modal-success__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* External Link Button */
.ekc-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-color);
  background: rgba(180, 120, 32, 0.08);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(180, 120, 32, 0.25);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.ekc-link-btn:hover {
  background: var(--brand-color);
  color: #fff;
  border-color: var(--brand-color);
}

.ekc-card__link-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Responsive Adaptations (Tablet & Smartphone)
   ========================================================================== */
@media (max-width: 1024px) {
  .ekc-content {
    padding: 20px;
  }
  .ekc-watch-layout {
    grid-template-columns: 1fr;
  }
  .ekc-watch-side {
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .ekc-header {
    padding: 0 12px;
    height: 56px;
  }
  .ekc-header__center {
    display: none;
  }
  .ekc-header__right .ekc-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .ekc-logo__title {
    font-size: 13.5px;
  }
  .ekc-logo__subtitle {
    display: none;
  }

  .ekc-mobile-search {
    display: block;
    margin-bottom: 16px;
  }

  .ekc-sidebar {
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-popup);
    z-index: 95;
    background: #ffffff;
  }
  .ekc-sidebar.is-open {
    transform: translateX(0);
  }

  .ekc-content {
    padding: 16px 14px;
  }

  .ekc-channel-banner {
    padding: 24px 18px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
  }
  .ekc-channel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ekc-channel-avatar {
    width: 60px;
    height: 60px;
    font-size: 18px;
    border-radius: 10px;
  }
  .ekc-channel-title {
    font-size: 19px;
  }
  .ekc-channel-meta {
    font-size: 11.5px;
    gap: 8px;
  }
  .ekc-channel-lead {
    font-size: 13px;
  }
  .ekc-channel-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .ekc-channel-actions .ekc-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }

  .ekc-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ekc-shelf__title {
    font-size: 16.5px;
  }

  .ekc-player-box {
    border-radius: var(--radius-md);
  }
  .ekc-player-visual__title {
    font-size: 20px;
  }
  .ekc-player-visual__sub {
    font-size: 12px;
  }
  .ekc-watch-title {
    font-size: 17px;
  }
  .ekc-watch-desc-box {
    padding: 16px;
  }
  .ekc-faq-section {
    padding: 16px;
  }
  .ekc-company-table th {
    width: 90px;
    padding: 10px 12px;
    font-size: 12.5px;
  }
  .ekc-company-table td {
    padding: 10px 12px;
    font-size: 12.5px;
  }
}
