/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-normal-300-latin_ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-normal-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-normal-400-latin_ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-normal-500-latin_ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-normal-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-normal-600-latin_ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-normal-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-normal-700-latin_ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-normal-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-italic-400-latin_ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-normal-700-latin_ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-normal-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --color-bg: #f0f2f8;
  --color-surface: #ffffff;
  --color-nav-bg: #0d1117;
  --color-nav-text: #f0f6fc;
  --color-nav-muted: #8b949e;
  --color-accent: #4f46e5;
  --color-accent-light: #818cf8;
  --color-accent-hover: #3730a3;
  --color-text: #1a1a2e;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-success-bg: #d1fae5;
  --color-success-text: #065f46;
  --color-warning-bg: #fef3c7;
  --color-warning-text: #92400e;
  --color-danger-bg: #fee2e2;
  --color-danger-text: #991b1b;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --transition: 0.2s ease;
  --nav-height: 64px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ─── Skip link ─────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 200;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ─── Navigation ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-nav-text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  border-radius: 8px;
  font-size: 1rem;
  font-style: normal;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__link {
  display: inline-block;
  color: var(--color-nav-muted);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav__link:hover {
  color: var(--color-nav-text);
  background: rgba(255,255,255,0.07);
}

.nav__link--active {
  color: var(--color-accent-light);
  background: rgba(79,70,229,0.15);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-accent-light);
  border-radius: 2px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
}

.nav__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-nav-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 0 auto;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Layout ─────────────────────────────────────── */
main { flex: 1; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Home Hero ─────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, #0d1117 0%, #1e1b4b 45%, #2d2a7a 100%);
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero__bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(79,70,229,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(129,140,248,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.home-hero__badge {
  display: inline-block;
  color: var(--color-accent-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  padding: 0.4rem 1rem;
  background: rgba(79,70,229,0.18);
  border: 1px solid rgba(129,140,248,0.3);
  border-radius: 100px;
}

.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.home-hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--color-accent-light), #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero__text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
}

/* ─── Page Hero (inner pages) ────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(129,140,248,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__content { position: relative; z-index: 1; }

.page-hero__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-hero__subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.1rem);
  opacity: 0.78;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Sections ───────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.625rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.section__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section__divider-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--color-text);
}

.section__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-border), transparent);
}

/* ─── Intro card ─────────────────────────────────── */
.intro-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.intro-card p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--color-text);
}

.intro-card p + p { margin-top: 1.125rem; }

/* ─── News grid ──────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.news-card__dot {
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.news-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

.news-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.news-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  background: rgba(79,70,229,0.08);
  color: var(--color-accent);
  border: 1px solid rgba(79,70,229,0.15);
  align-self: flex-start;
}

/* ─── Rating info box ────────────────────────────── */
.rating-info {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1px solid rgba(79,70,229,0.2);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 3rem;
}

.rating-info__heading {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-accent-hover);
  margin-bottom: 0.875rem;
}

.rating-info__heading-icon { font-size: 1.25rem; }

.rating-info p {
  color: var(--color-text);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.rating-info p + p { margin-top: 0.5rem; }

.rating-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.rating-badge--high { background: var(--color-success-bg); color: var(--color-success-text); }
.rating-badge--mid  { background: var(--color-warning-bg); color: var(--color-warning-text); }
.rating-badge--low  { background: var(--color-danger-bg);  color: var(--color-danger-text);  }

/* ─── Table sections ─────────────────────────────── */
.table-section { margin-bottom: 3rem; }

.table-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  table-layout: fixed;
}

thead th {
  background: #f8f9fa;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 1.375rem;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
}

tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover { background: #fafbff; }

tbody td {
  padding: 0.9375rem 1.375rem;
  color: var(--color-text);
  vertical-align: middle;
}

.td-title {
  font-weight: 500;
  overflow-wrap: break-word;
  word-break: break-word;
}

.rating-cell {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.rating-score {
  font-weight: 700;
  font-size: 0.9375rem;
  min-width: 2.75rem;
  color: var(--color-text);
}

.rating-track {
  flex: 1;
  height: 5px;
  background: var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}

.rating-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
}

.rating-fill--high { background: linear-gradient(to right, #059669, #34d399); }
.rating-fill--mid  { background: linear-gradient(to right, #d97706, #fbbf24); }
.rating-fill--low  { background: linear-gradient(to right, #dc2626, #f87171); }

/* ─── Fixed column widths (consistent across all year tables) ────────── */
/* 3-column tables: Title / Personal Rating / Combined Rating */
.table-wrapper table:has(thead th:nth-child(3)) th:first-child  { width: 50%; }
.table-wrapper table:has(thead th:nth-child(3)) th:nth-child(2) { width: 18%; }
/* th:nth-child(3) receives the remaining 32% automatically */

/* 2-column tables: Title / Personal Rating (books & pre-2012 movies) */
.table-wrapper table:not(:has(thead th:nth-child(3))) th:first-child  { width: 65%; }
/* th:nth-child(2) receives the remaining 35% automatically */

/* On narrow screens the 3rd column is hidden — reset widths for 2-col display */
@media (max-width: 768px) {
  .table-wrapper table:has(thead th:nth-child(3)) th:first-child  { width: 65%; }
  .table-wrapper table:has(thead th:nth-child(3)) th:nth-child(2) { width: 35%; }
}

/* ─── Author sections (Books) ────────────────────── */
.author-section { margin-bottom: 3rem; }

.author-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79,70,229,0.35);
}

.author-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
}

.author-count {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.125rem;
}

/* ─── Links page ─────────────────────────────────── */
.links-section { margin-bottom: 3.5rem; }

.links-section__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 2px solid var(--color-accent);
}

.links-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-text);
}

.links-section__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  background: rgba(79,70,229,0.1);
  color: var(--color-accent);
  border: 1px solid rgba(79,70,229,0.2);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
}

.link-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.link-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(79,70,229,0.4);
  transform: translateY(-2px);
}

.link-card a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.375rem;
  text-decoration: none;
  color: inherit;
}

.link-card__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(129,140,248,0.08));
  border: 1px solid rgba(79,70,229,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
  transition: background var(--transition);
}

.link-card:hover .link-card__icon {
  background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(129,140,248,0.15));
}

.link-card__body { flex: 1; min-width: 0; }

.link-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.1875rem;
}

.link-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Venue card (Brunch): non-clickable wrapper with inline sub-links */
.link-card--venue {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.375rem;
  cursor: default;
}

.link-card--venue .link-card__desc {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.venue-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.venue-link:hover { text-decoration: underline; }

.link-card__arrow {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
  line-height: 1;
}

.link-card:hover .link-card__arrow {
  transform: translateX(4px);
  color: var(--color-accent);
}

/* ─── Table sub-header rows (SPECIAL: sections) ─── */
.table-subheader .td-subheader {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: var(--color-accent-hover);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0.625rem 1.375rem;
  border-top: 2px solid rgba(79,70,229,0.2);
}

/* ─── Combined rating cell (movies) ─────────────── */
.combined-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.combined-range {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ─── TV Series section ──────────────────────────── */
.serien-section { padding-top: 1rem; }

.serien-group {
  margin-bottom: 2.5rem;
}

.serien-group__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.serien-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.375rem 1.5rem;
}

.serien-list li {
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.serien-list li::before {
  content: '▸ ';
  color: var(--color-accent);
  font-size: 0.75rem;
}

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--color-nav-bg);
  color: var(--color-nav-muted);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ─── Utility / modifier classes ────────────────── */

/* Inline accent link (used in prose text) */
.link--accent {
  color: var(--color-accent);
  font-weight: 600;
}
.link--accent:hover {
  text-decoration: underline;
}

/* News/section with surface background and ruled borders */
.section--ruled {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Film count badge inside a section divider */
.table-section__count {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* intro-card with bottom spacing (e.g. before a link list) */
.intro-card--spaced {
  margin-bottom: 3rem;
}

/* Serien section: tighten the divider and info box spacing */
.serien-section .section__divider {
  margin-bottom: 1.5rem;
}

.serien-section .rating-info {
  margin-bottom: 2rem;
}

/* ─── Utilities ──────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(13,17,23,0.98);
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
  }

  .nav__menu.is-open { display: flex; }

  .nav__link { padding: 0.75rem 1rem; }
  .nav__link--active::after { display: none; }

  .home-hero { padding: 4.5rem 1.5rem 3.5rem; }

  .section { padding: 2.5rem 0; }

  .intro-card { padding: 1.75rem; }

  .rating-info { padding: 1.5rem; }

  thead th:nth-child(3),
  tbody td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .home-hero { padding: 3.5rem 1rem 3rem; }
  .intro-card { padding: 1.25rem; }

  thead th:nth-child(3),
  tbody td:nth-child(3) {
    display: none;
  }
}

/* Show all columns on tablets and up */
@media (min-width: 769px) {
  thead th:nth-child(3),
  tbody td:nth-child(3) {
    display: table-cell;
  }
}
