:root {
  --primary: #1e3a8a;        /* dark blue */
  --primary-dark: #172554;  /* darker blue */

  --text-main: #e5e7eb;     /* light text */
  --text-muted: #9ca3af;

  --bg: #0f172a;           /* page background */
  --border: #1e293b;

  --card-bg: #111827;      /* cards */
}

/* Reset */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* Body */

body {
  background: var(--bg);
  color: var(--text-main);

  font-family: -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;

  line-height: 1.4;
}

/* Header */

.header {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: white;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;

  min-height: 70px;

  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.header-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 600;
}

.header small {
  opacity: .85;
  font-size: 13px;
}

/* Layout */

.container {
  max-width: 900px;
  margin: 90px auto 40px;
  padding: 0 15px;
  background: transparent;
}

/* Sections */

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 20px 0 16px;
  color: var(--text-main);
}

/* Grid */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Routine cards */

.card-link {
  display: block;

  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;

  padding: 14px 16px;

  box-shadow: 0 1px 4px rgba(0,0,0,.4);
  transition: all .15s ease;

  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,.6);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-weight: 500;
  font-size: 15px;
}

.card-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.card-arrow {
  color: #94a3b8;
  font-size: 16px;
}

/* Video grid */

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Video cards */

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;

  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.video-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.video-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.video-badge {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive video */

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;

  border-radius: 8px;
  background: #020617;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  border: 0;
}

/* Empty state */

.video-empty {
  color: var(--text-muted);
  font-size: 14px;
  padding: 10px 0;
  text-align: center;
}

/* Logo */

.header img {
  box-shadow: 0 0 0 2px rgba(255,255,255,.15);
  transition: transform .2s ease;
}

.header img:hover {
  transform: scale(1.05);
}
