/* ============================================================
   Team Homework Blog — Project Dashboard CSS
   ============================================================ */

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  width: 100%;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

/* Card Bezel OLED Simulation */
.canvas-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  border-radius: 20px;
  background: #040814;
  border: 4px solid #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(59, 130, 246, 0.15);
  overflow: hidden;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

[data-theme="light"] .canvas-container {
  border-color: #cbd5e1;
}

#robot-canvas {
  background: #02040a;
  border-radius: 12px;
  display: block;
}

.robot-status-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  text-transform: uppercase;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.8; box-shadow: 0 0 4px rgba(59, 130, 246, 0.2); }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
}

.mood-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.mood-btn {
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}

.mood-btn.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 12px var(--accent-glow) !important;
}

/* Specifications Card details */
.spec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  font-size: 0.86rem;
}

[data-theme="light"] .spec-item {
  background: rgba(0, 0, 0, 0.01);
}

.spec-name {
  font-weight: 600;
  color: var(--text-main);
}

.spec-val {
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
}

/* Sensor Telemetry widgets */
.sensor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .sensor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sensor-widget {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

[data-theme="light"] .sensor-widget {
  background: rgba(0, 0, 0, 0.01);
}

.sensor-widget:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-icon {
  font-size: 1.2rem;
}

.widget-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.widget-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.widget-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.graph-container {
  height: 60px;
  width: 100%;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  overflow: hidden;
}

[data-theme="light"] .graph-container {
  background: rgba(0, 0, 0, 0.05);
}

.graph-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Arduino Terminal Console styling */
.serial-console {
  background: #020408;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  height: 200px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

.console-lines {
  height: 100%;
  overflow-y: auto;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #10b981;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Scrollbar customization for console */
.console-lines::-webkit-scrollbar {
  width: 6px;
}
.console-lines::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 3px;
}
.console-lines::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}

.console-log-line {
  word-break: break-all;
}

.console-log-line.error { color: #f43f5e; }
.console-log-line.warn { color: #f59e0b; }
.console-log-line.success { color: #34d399; }
.console-log-line.info { color: #38bdf8; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Reference Page Custom Layout Styles
   ============================================================ */

.sandbox-project {
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 40px;
}

.sandbox-hero {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  margin-bottom: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sandbox-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sandbox-hero .subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.sandbox-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.sandbox-keywords .kw-tag {
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.sandbox-keywords .kw-tag:hover {
  transform: translateY(-2px);
}

.sandbox-section {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-glass);
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.sandbox-section:hover {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08);
}

.sandbox-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sandbox-section h2 .sec-icon {
  font-size: 1.6rem;
}

.sandbox-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--accent-primary);
}

.sandbox-section p {
  line-height: 1.8;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.goal-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  transition: all 0.3s;
}

.goal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
}

.goal-card .goal-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.goal-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.goal-card p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.interaction-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.flow-step {
  text-align: center;
  padding: 1.5rem 1.2rem;
  border-radius: 16px;
  min-width: 140px;
  border: 1px solid var(--border-glass);
  transition: all 0.3s;
}

.flow-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.flow-step .step-icon {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.flow-step .step-title {
  font-weight: 700;
  font-size: 1rem;
}

.flow-step .step-desc {
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.flow-arrow {
  font-size: 1.8rem;
  margin: 0 0.8rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.flow-principle {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--accent-primary);
  line-height: 1.8;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.layer-card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  transition: all 0.3s;
  border-left: 4px solid var(--accent-primary);
}

.layer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
}

.layer-card .layer-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.layer-card h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.layer-card p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.layer-card .layer-detail {
  margin-top: 0.8rem;
  font-size: 0.8rem;
}

.layer-card .layer-detail span {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 10px;
  margin: 0.15rem;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

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

.module-card {
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
  transition: all 0.3s;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
}

.module-card .mod-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.module-card .mod-info h4 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.module-card .mod-info .mod-type {
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.module-card .mod-info p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.experiment-card {
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-glass);
  margin-bottom: 1.2rem;
  transition: all 0.3s;
}

.experiment-card:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.experiment-card .exp-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.experiment-card .exp-num {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px var(--accent-glow);
}

.experiment-card h4 {
  font-weight: 700;
}

.interaction-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.interaction-table th {
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--border-glass);
}

.interaction-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.interaction-table tr:last-child td {
  border-bottom: none;
}

.interaction-table tr:hover td {
  background: rgba(59, 130, 246, 0.04);
}

.innovation-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.8rem;
}

.innovation-list li {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  font-size: 0.9rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  transition: all 0.3s;
}

.innovation-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

.innovation-list li .inno-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
}

.stage-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.stage-summary .stage-done,
.stage-summary .stage-next {
  padding: 1.2rem;
  border-radius: 14px;
}

.stage-summary h4 {
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.stage-summary ul {
  list-style: none;
  font-size: 0.85rem;
  line-height: 2;
}

.stage-summary ul li::before {
  content: '• ';
  color: var(--accent-primary);
  font-weight: 700;
}

.code-section {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
}

.code-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.code-scroll-container {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 12px;
  background: #020408;
  border: 1px solid var(--border-glass);
  padding: 1.5rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.code-highlight {
  margin: 0;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre;
  word-wrap: normal;
}

/* ============================================================
   Interactive Input Control Sliders (New Feature)
   ============================================================ */

.dashboard-control-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
}

.control-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.control-slider-value {
  font-family: 'Fira Code', monospace;
  color: var(--accent-primary);
  font-weight: 700;
}

.control-slider-input {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.control-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: transform 0.1s;
}

.control-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* ============================================================
   Dark Mode & Light Mode Theme Adaptions
   ============================================================ */

/* Dark Mode Theme */
[data-theme="dark"] .sandbox-hero,
[data-theme="dark"] .sandbox-section,
[data-theme="dark"] .goal-card,
[data-theme="dark"] .flow-step,
[data-theme="dark"] .layer-card,
[data-theme="dark"] .module-card,
[data-theme="dark"] .experiment-card,
[data-theme="dark"] .code-section {
  background: rgba(13, 20, 38, 0.45);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .sandbox-hero .subtitle {
  color: var(--text-muted);
}

[data-theme="dark"] .sandbox-section p,
[data-theme="dark"] .goal-card p,
[data-theme="dark"] .flow-step .step-desc,
[data-theme="dark"] .layer-card p,
[data-theme="dark"] .layer-card .layer-detail span,
[data-theme="dark"] .module-card .mod-info p,
[data-theme="dark"] .stage-summary ul {
  color: var(--text-muted);
}

[data-theme="dark"] .sandbox-hero h1 {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .sandbox-keywords .kw-tag {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--accent-primary);
}

[data-theme="dark"] .sandbox-keywords .kw-tag:hover {
  background: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .flow-step,
[data-theme="dark"] .interaction-table td {
  background: rgba(13, 20, 38, 0.6);
}

[data-theme="dark"] .interaction-table th {
  background: rgba(59, 130, 246, 0.15);
  color: var(--text-main);
}

[data-theme="dark"] .stage-done {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .stage-next {
  background: rgba(168, 210, 255, 0.03);
  border: 1px solid rgba(168, 210, 255, 0.1);
}

/* Light Mode Theme */
[data-theme="light"] .sandbox-hero,
[data-theme="light"] .sandbox-section,
[data-theme="light"] .goal-card,
[data-theme="light"] .flow-step,
[data-theme="light"] .layer-card,
[data-theme="light"] .module-card,
[data-theme="light"] .experiment-card,
[data-theme="light"] .code-section {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(168, 210, 255, 0.25);
}

[data-theme="light"] .sandbox-hero .subtitle {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .sandbox-section p,
[data-theme="light"] .goal-card p,
[data-theme="light"] .flow-step .step-desc,
[data-theme="light"] .layer-card p,
[data-theme="light"] .layer-card .layer-detail span,
[data-theme="light"] .module-card .mod-info p,
[data-theme="light"] .stage-summary ul {
  color: #334155;
}

[data-theme="light"] .sandbox-hero h1 {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .sandbox-keywords .kw-tag {
  background: rgba(168, 210, 255, 0.15);
  border-color: rgba(168, 210, 255, 0.4);
  color: #1e3a8a;
}

[data-theme="light"] .sandbox-keywords .kw-tag:hover {
  background: rgba(168, 210, 255, 0.3);
}

[data-theme="light"] .flow-step,
[data-theme="light"] .interaction-table td {
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .interaction-table th {
  background: rgba(168, 210, 255, 0.2);
  color: #0f172a;
}

[data-theme="light"] .stage-done {
  background: rgba(168, 210, 255, 0.1);
  border: 1px solid rgba(168, 210, 255, 0.3);
}

[data-theme="light"] .stage-next {
  background: rgba(192, 224, 255, 0.05);
  border: 1px solid rgba(192, 224, 255, 0.2);
}

[data-theme="light"] .control-slider-input {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .dashboard-control-slider {
  background: rgba(0, 0, 0, 0.01);
}

/* ============================================================
   Project Showcase Media Grid (Poster & Video)
   ============================================================ */

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 24px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

/* 9:16 Poster Card */
.media-poster-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.media-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-poster-card:hover .media-poster-img {
  transform: scale(1.05);
}

.media-poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

[data-theme="light"] .media-poster-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.5) 60%, transparent 100%);
}

.media-poster-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.media-poster-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.media-poster-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.media-poster-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* 16:9 Video & Highlights container */
.media-right-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.media-video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: #020408;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.media-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-highlights-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
}

.highlights-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlights-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  font-size: 0.82rem;
  line-height: 1.4;
  transition: transform 0.2s ease;
}

[data-theme="light"] .highlight-item {
  background: rgba(0, 0, 0, 0.01);
}

.highlight-item:hover {
  transform: translateX(3px);
  border-color: var(--accent-primary);
}

.highlight-bullet {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.highlight-text h5 {
  font-weight: 700;
  margin: 0 0 2px 0;
  color: var(--text-main);
}

.highlight-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* Media Grid Responsive */
@media (max-width: 820px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
  .media-poster-card {
    max-width: 450px;
    margin: 0 auto;
  }
}

