*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --bg-dark: #2d2d2d;
  --panel-bg: #3d3d3d;
  --text-primary: #ffffff;
  --text-muted: #b0b0b0;
  --label-bg: #5a5a5a;
  --radius: 12px;
  --radius-sm: 6px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background: var(--panel-bg);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Hero image */
.hero {
  width: 100%;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

/* Main content */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.panels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .panels-grid {
    grid-template-columns: 1fr;
  }
}

/* Link panel – matches reference: dark, rounded, left text / right image */
.panel {
  display: flex;
  background: var(--panel-bg);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.panel-text {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.panel-desc {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.panel-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.panel-label {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--label-bg);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.panel-source {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.panel-play {
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.panel-play::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--text-primary);
  margin-left: 2px;
}

.panel-image-wrap {
  flex: 0 0 36%;
  min-width: 120px;
  position: relative;
}

.panel-image {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.error-message {
  color: var(--text-muted);
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
}
