/* ==========================================================================
   Documentary Stream – dark streaming theme
   ========================================================================== */

:root {
	--bg: #0b0b0f;
	--surface: #15151c;
	--surface-2: #1d1d26;
	--surface-3: #272733;
	--line: rgba(255, 255, 255, 0.08);
	--text: #f3f3f6;
	--muted: #a5a5b4;
	--faint: #6f6f80;
	--accent: #ff4757;
	--accent-hover: #ff6b78;
	--accent-ink: #fff;
	--radius: 12px;
	--radius-sm: 8px;
	--gutter: clamp(16px, 4vw, 56px);
	--header-h: 64px;
	--shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: #fff;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

h1,
h2,
h3,
h4 {
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 700;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ds-skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 200;
	padding: 10px 16px;
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: var(--radius-sm);
}

.ds-skip:focus {
	top: 12px;
}

.ds-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.ds-main {
	min-height: 60vh;
	padding-top: var(--header-h);
}

.home .ds-main {
	padding-top: 0;
}

/* --------------------------------------------------------------------------
   Buttons, chips, badges
   -------------------------------------------------------------------------- */

.ds-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.6em 1.1em;
	border: 0;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	white-space: nowrap;
	transition: background 0.2s, transform 0.2s var(--ease), color 0.2s;
}

.ds-btn:active {
	transform: scale(0.97);
}

.ds-btn--lg {
	padding: 0.8em 1.5em;
	font-size: 1.05rem;
}

.ds-btn--primary {
	background: var(--accent);
	color: var(--accent-ink);
}

.ds-btn--primary:hover {
	background: var(--accent-hover);
	color: var(--accent-ink);
}

.ds-btn--glass {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	backdrop-filter: blur(8px);
}

.ds-btn--glass:hover {
	background: rgba(255, 255, 255, 0.26);
}

.ds-btn--ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--line);
}

.ds-btn--ghost:hover {
	background: var(--surface-2);
}

.ds-btn--pill {
	background: var(--surface-2);
	color: var(--text);
}

.ds-btn--pill:hover {
	background: var(--surface-3);
}

.ds-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--text);
}

.ds-iconbtn:hover {
	background: rgba(255, 255, 255, 0.1);
}

.ds-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.42em 0.9em;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: 0.88rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.2s, border-color 0.2s;
}

.ds-chip:hover {
	background: var(--surface-3);
}

.ds-chip.is-active {
	background: var(--text);
	color: var(--bg);
	border-color: var(--text);
}

.ds-chip span {
	color: var(--faint);
	font-size: 0.85em;
}

.ds-chip.is-active span {
	color: inherit;
}

.ds-chip--lg {
	padding: 0.6em 1.1em;
	font-size: 0.95rem;
}

.ds-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 1rem 0;
}

.ds-chips--scroll {
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.ds-chips--scroll::-webkit-scrollbar {
	display: none;
}

.ds-badge {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
}

.ds-badge--outline {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: var(--text);
	vertical-align: 0.1em;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.ds-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	background: rgba(11, 11, 15, 0.92);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
	transition: background 0.3s, border-color 0.3s;
}

.ds-header--overlay:not(.is-scrolled):not(.is-search-open) {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
	backdrop-filter: none;
	border-color: transparent;
}

.ds-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
	padding: 0 var(--gutter);
}

.ds-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	flex: none;
}

.ds-logo__mark {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
}

.ds-logo__mark .ds-icon {
	width: 16px;
	height: 16px;
}

.ds-logo__text span {
	color: var(--accent);
}

.custom-logo {
	max-height: 40px;
	width: auto;
}

.ds-header__nav {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.ds-nav {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ds-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.93rem;
	font-weight: 500;
	white-space: nowrap;
}

.ds-nav a:hover,
.ds-nav .current-menu-item > a {
	color: #fff;
}

.ds-nav .current-menu-item > a {
	background: rgba(255, 255, 255, 0.1);
}

.ds-nav .ds-icon {
	display: none;
}

.ds-search {
	position: relative;
	width: min(340px, 30vw);
}

.ds-search__form {
	display: flex;
	align-items: center;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	transition: border-color 0.2s, background 0.2s;
}

.ds-search__form:focus-within {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.6);
}

.ds-search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 4px 0 16px;
	border: 0;
	background: transparent;
	outline: none;
}

.ds-search__input::placeholder {
	color: var(--faint);
}

.ds-search__input::-webkit-search-cancel-button {
	filter: invert(1);
}

.ds-search__submit {
	display: grid;
	place-items: center;
	width: 40px;
	height: 100%;
	border: 0;
	background: transparent;
	color: var(--muted);
}

.ds-suggest {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	max-height: 70vh;
	overflow: auto;
}

.ds-suggest a {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 10px;
	align-items: center;
	padding: 6px;
	border-radius: var(--radius-sm);
}

.ds-suggest a:hover,
.ds-suggest a.is-active {
	background: var(--surface-3);
}

.ds-suggest img,
.ds-suggest .ds-suggest__noimg {
	width: 88px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 6px;
	background: var(--surface-3);
}

.ds-suggest strong {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
}

.ds-suggest small {
	color: var(--muted);
	font-size: 0.78rem;
}

.ds-suggest__all {
	display: block !important;
	text-align: center;
	color: var(--accent) !important;
	font-weight: 600;
	font-size: 0.88rem;
}

.ds-header__menu,
.ds-header__searchtoggle {
	display: none;
}

/* --------------------------------------------------------------------------
   Drawer (mobile menu)
   -------------------------------------------------------------------------- */

.ds-drawer {
	position: fixed;
	inset: 0;
	z-index: 150;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.ds-drawer[hidden] {
	display: none;
}

.ds-drawer__panel {
	width: min(320px, 86vw);
	height: 100%;
	overflow-y: auto;
	padding: 12px 16px 32px;
	background: var(--surface);
	border-right: 1px solid var(--line);
	animation: ds-slide-in 0.25s var(--ease);
}

@keyframes ds-slide-in {
	from {
		transform: translateX(-100%);
	}
}

.ds-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 52px;
	margin-bottom: 8px;
}

.ds-drawer__nav,
.ds-drawer__cats {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ds-drawer__nav a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border-radius: var(--radius-sm);
	font-weight: 500;
}

.ds-drawer__nav a:hover,
.ds-drawer__nav .current-menu-item > a {
	background: var(--surface-2);
}

.ds-drawer__label {
	margin: 20px 12px 6px;
	color: var(--faint);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ds-drawer__cats a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--muted);
}

.ds-drawer__cats a:hover {
	background: var(--surface-2);
	color: #fff;
}

.ds-drawer__add {
	width: 100%;
	margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Hero carousel
   -------------------------------------------------------------------------- */

.ds-hero {
	position: relative;
	height: clamp(520px, 86vh, 880px);
	overflow: hidden;
	background: #000;
}

.ds-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0.9s;
}

.ds-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.ds-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	transform: scale(1.06);
	transition: transform 8s linear;
}

.ds-hero__slide.is-active .ds-hero__img {
	transform: scale(1);
}

.ds-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to right, rgba(11, 11, 15, 0.92) 0%, rgba(11, 11, 15, 0.55) 38%, rgba(11, 11, 15, 0) 70%),
		linear-gradient(to top, var(--bg) 0%, rgba(11, 11, 15, 0.6) 18%, rgba(11, 11, 15, 0) 45%);
}

.ds-hero__content {
	position: absolute;
	z-index: 1;
	left: var(--gutter);
	bottom: clamp(72px, 14vh, 150px);
	width: min(620px, calc(100% - 2 * var(--gutter)));
}

.ds-hero__kicker {
	display: inline-block;
	margin-bottom: 12px;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ds-hero__title {
	margin-bottom: 0.3em;
	font-size: clamp(2rem, 4.6vw, 3.8rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.ds-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: #e0e0e6;
	font-weight: 500;
}

.ds-hero__excerpt {
	color: #d4d4dc;
	font-size: clamp(0.95rem, 1.3vw, 1.1rem);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ds-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.ds-hero__dots {
	position: absolute;
	z-index: 2;
	right: var(--gutter);
	bottom: clamp(72px, 14vh, 150px);
	display: flex;
	gap: 8px;
}

.ds-hero__dot {
	width: 28px;
	height: 4px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.35);
	transition: background 0.3s, width 0.3s;
}

.ds-hero__dot.is-active {
	width: 44px;
	background: #fff;
}

/* --------------------------------------------------------------------------
   Rows
   -------------------------------------------------------------------------- */

.ds-rows {
	position: relative;
	z-index: 1;
	padding-bottom: 32px;
}

.home .ds-rows {
	margin-top: clamp(-70px, -8vh, -40px);
}

.ds-row {
	margin: 0 0 clamp(28px, 4vw, 44px);
}

.ds-row__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 var(--gutter);
	margin-bottom: 12px;
}

.ds-row__title {
	margin: 0;
	font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.ds-row__title a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.ds-row__more {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: var(--accent);
	font-size: 0.85rem;
	font-weight: 600;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.2s, transform 0.2s var(--ease);
}

.ds-row__title a:hover .ds-row__more,
.ds-row__title a:focus-visible .ds-row__more {
	opacity: 1;
	transform: none;
}

.ds-row__more .ds-icon {
	width: 1em;
	height: 1em;
}

.ds-row__nav {
	display: flex;
	gap: 6px;
}

.ds-row__btn {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text);
	transition: background 0.2s, opacity 0.2s;
}

.ds-row__btn:hover {
	background: var(--surface-3);
}

.ds-row__btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.ds-row__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(240px, 21vw, 340px);
	gap: 16px;
	margin: 0;
	padding: 6px var(--gutter) 12px;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}

.ds-row__track::-webkit-scrollbar {
	display: none;
}

.ds-row__item {
	scroll-snap-align: start;
	min-width: 0;
}

.ds-row--ranked .ds-row__track {
	grid-auto-columns: clamp(270px, 24vw, 380px);
}

.ds-places .ds-chips {
	padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.ds-card {
	position: relative;
	min-width: 0;
}

.ds-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface-2);
	isolation: isolate;
	transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.ds-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease), filter 0.3s;
}

.ds-card__noimg {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--faint);
}

.ds-card:hover .ds-card__thumb,
.ds-card:focus-within .ds-card__thumb {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.ds-card:hover .ds-card__img {
	transform: scale(1.05);
	filter: brightness(0.75);
}

.ds-card__badges {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	gap: 4px;
}

.ds-card__duration {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.ds-card__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	opacity: 0;
	transition: opacity 0.25s;
}

.ds-card__play .ds-icon {
	width: 54px;
	height: 54px;
	padding: 14px 12px 14px 16px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #000;
	transform: scale(0.8);
	transition: transform 0.25s var(--ease);
}

.ds-card:hover .ds-card__play {
	opacity: 1;
}

.ds-card:hover .ds-card__play .ds-icon {
	transform: scale(1);
}

.ds-card__body {
	padding: 10px 2px 0;
}

.ds-card__title {
	margin: 0 0 4px;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ds-card__title a:hover {
	color: var(--accent-hover);
}

.ds-card__meta {
	margin: 0;
	color: var(--muted);
	font-size: 0.82rem;
}

.ds-card__excerpt {
	margin: 6px 0 0;
	color: var(--faint);
	font-size: 0.85rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Ranked cards: large number beside the thumbnail */
.ds-card--ranked {
	display: grid;
	grid-template-columns: 0.42fr 1fr;
	align-items: start;
}

.ds-card--ranked .ds-card__rank {
	align-self: end;
	margin-bottom: -2px;
	margin-right: -14px;
	font-size: clamp(4.5rem, 7vw, 7rem);
	font-weight: 900;
	line-height: 0.8;
	letter-spacing: -0.06em;
	text-align: right;
	color: var(--bg);
	-webkit-text-stroke: 2px rgba(255, 255, 255, 0.55);
	z-index: 1;
	pointer-events: none;
	grid-row: 1;
}

.ds-card--ranked .ds-card__thumb,
.ds-card--ranked .ds-card__body {
	grid-column: 2;
}

.ds-grid--ranked .ds-card--ranked {
	grid-template-columns: 64px 1fr;
}

.ds-grid--ranked .ds-card--ranked .ds-card__rank {
	align-self: start;
	margin: 0 10px 0 0;
	padding-top: 12px;
	font-size: 3.4rem;
}

/* --------------------------------------------------------------------------
   Page head, listings, grid, filters, pagination
   -------------------------------------------------------------------------- */

.ds-pagehead {
	padding: clamp(28px, 5vw, 56px) var(--gutter) 8px;
	background: radial-gradient(80% 140% at 0% 0%, rgba(255, 71, 87, 0.16), transparent 60%);
}

.ds-pagehead--narrow {
	max-width: 900px;
	margin: 0 auto;
	background: none;
}

.ds-pagehead__kicker {
	margin: 0 0 6px;
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ds-pagehead__title {
	margin: 0 0 8px;
	font-size: clamp(1.9rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.025em;
}

.ds-pagehead__meta {
	color: var(--muted);
}

.ds-pagehead__desc {
	max-width: 780px;
	color: var(--muted);
}

.ds-pagehead__search {
	max-width: 620px;
	margin-top: 16px;
}

.ds-searchform {
	display: flex;
	height: 50px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	overflow: hidden;
}

.ds-searchform:focus-within {
	border-color: rgba(255, 255, 255, 0.35);
}

.ds-searchform input {
	flex: 1;
	min-width: 0;
	padding: 0 20px;
	border: 0;
	background: transparent;
	outline: none;
	font-size: 1rem;
}

.ds-searchform button {
	width: 56px;
	border: 0;
	background: var(--accent);
	color: #fff;
}

.ds-listing {
	padding: 8px var(--gutter) 48px;
}

.ds-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 8px 0 26px;
}

.ds-filters__group {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	max-width: 100%;
}

.ds-filters__group::-webkit-scrollbar {
	display: none;
}

.ds-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	margin-bottom: 26px;
}

.ds-tabs .ds-chip {
	cursor: pointer;
}

.ds-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 30px 18px;
}

.ds-grid[hidden] {
	display: none;
}

.ds-pagination {
	margin-top: 44px;
}

.ds-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ds-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-weight: 600;
}

.ds-pagination a.page-numbers:hover {
	background: var(--surface-3);
}

.ds-pagination .current {
	background: var(--text);
	color: var(--bg);
}

.ds-pagination .dots {
	background: transparent;
}

.ds-empty {
	max-width: 640px;
	margin: 40px auto;
	padding: 0 var(--gutter);
	text-align: center;
	color: var(--muted);
}

.ds-empty h2 {
	color: var(--text);
}

.ds-empty--404 {
	padding-top: clamp(40px, 10vh, 120px);
	padding-bottom: 40px;
}

.ds-empty--404 .ds-pagehead__search {
	margin: 24px auto;
}

/* --------------------------------------------------------------------------
   Watch page
   -------------------------------------------------------------------------- */

.ds-watch {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
	gap: 28px;
	max-width: 1800px;
	margin: 0 auto;
	padding: 24px var(--gutter) 40px;
}

.ds-player {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.ds-player iframe,
.ds-player video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ds-player__unavailable {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	text-align: center;
}

.ds-player__unavailable img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.35;
}

.ds-player__unavailable p {
	position: relative;
	margin: 0;
	font-weight: 600;
}

.ds-watch__title {
	margin: 18px 0 10px;
	font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

.ds-watch__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ds-watch__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.ds-watch__meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ds-watch__meta .ds-icon {
	width: 1em;
	height: 1em;
}

.ds-watch__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.ds-rating {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--surface-2);
	font-size: 0.85rem;
	color: var(--muted);
}

.ds-rating img {
	display: inline-block;
	vertical-align: middle;
}

.ds-rating .post-ratings,
.ds-rating .post-ratings-loading {
	margin: 0;
}

/* Stars and "Rate video" / "Rating: 4.5" on one line (the plugin adds a <br>). */
.ds-rating .wp-postratings,
.ds-rating .post-ratings {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.ds-rating br {
	display: none;
}

.ds-about {
	margin-top: 18px;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--surface);
}

.ds-about__text {
	position: relative;
	color: #dcdce3;
	overflow: hidden;
}

.ds-about__text.is-collapsed {
	max-height: 11.5em;
}

.ds-about__text.is-collapsed::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 4.5em;
	background: linear-gradient(to bottom, rgba(21, 21, 28, 0), var(--surface));
}

.ds-about__text a {
	color: var(--accent-hover);
}

.ds-about__text p:last-child {
	margin-bottom: 0;
}

.ds-about__toggle {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--text);
	font-weight: 700;
}

.ds-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 14px 20px;
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.ds-facts dt {
	color: var(--faint);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ds-facts dd {
	margin: 2px 0 0;
	font-size: 0.93rem;
}

.ds-facts a {
	color: var(--accent-hover);
}

.ds-map {
	height: 300px;
	margin-top: 18px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface-2);
}

.ds-side__title {
	margin: 0 0 12px;
	font-size: 1.05rem;
}

.ds-upnext {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ds-upnext__item[hidden] {
	display: none;
}

.ds-upnext__item {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 10px;
}

.ds-upnext__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--surface-2);
}

.ds-upnext__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ease);
}

.ds-upnext__item:hover .ds-upnext__thumb img {
	transform: scale(1.05);
}

.ds-upnext__body h3 {
	margin: 0 0 4px;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ds-upnext__body p {
	margin: 0;
	color: var(--muted);
	font-size: 0.78rem;
	line-height: 1.4;
}

/* AI summary from the Video Insights plugin */
.doc-video-summary {
	margin: 1.2em 0 0;
	padding: 14px 16px;
	border: 0;
	border-left: 3px solid var(--accent);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text);
}

.doc-video-summary__title {
	margin: 0 0 0.4em;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Articles and pages
   -------------------------------------------------------------------------- */

.ds-article__hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(320px, 56vh, 620px);
	margin-top: calc(-1 * var(--header-h));
	overflow: hidden;
}

.ds-article__hero--plain {
	min-height: 0;
	margin-top: 0;
}

.ds-article__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ds-article__hero:not(.ds-article__hero--plain)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--bg) 2%, rgba(11, 11, 15, 0.55) 45%, rgba(11, 11, 15, 0.2));
}

.ds-article__head {
	position: relative;
	z-index: 1;
	width: min(900px, 100%);
	margin: 0 auto;
	padding: 40px var(--gutter) 24px;
}

.ds-article__title {
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -0.025em;
}

.ds-article__layout {
	padding: 0 var(--gutter) 40px;
}

.ds-prose {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 0 32px;
	color: #e1e1e8;
	font-size: 1.07rem;
	line-height: 1.75;
}

.ds-page .ds-prose {
	padding: 0 var(--gutter) 56px;
	box-sizing: content-box;
}

.ds-prose a {
	color: var(--accent-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ds-prose h2,
.ds-prose h3 {
	margin-top: 1.8em;
	color: var(--text);
}

.ds-prose img,
.ds-prose figure {
	border-radius: var(--radius);
	margin: 1.6em 0;
}

.ds-prose figure img {
	margin: 0;
}

.ds-prose figcaption,
.ds-prose .wp-caption-text {
	color: var(--faint);
	font-size: 0.85rem;
	text-align: center;
}

.ds-prose blockquote {
	margin: 1.6em 0;
	padding: 0.2em 0 0.2em 1.2em;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	font-style: italic;
}

.ds-prose iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: var(--radius);
}

.ds-prose .ds-player {
	margin-bottom: 1.6em;
}

.ds-prose table {
	width: 100%;
	border-collapse: collapse;
}

.ds-prose td,
.ds-prose th {
	padding: 8px;
	border-bottom: 1px solid var(--line);
}

.ds-prose input,
.ds-prose textarea,
.ds-prose select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

.ds-prose input[type="submit"],
.ds-prose button {
	width: auto;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
	margin: 0.4em 1.4em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.4em;
}

/* --------------------------------------------------------------------------
   Browse page, advanced search, map page
   -------------------------------------------------------------------------- */

.ds-browse__section {
	margin-bottom: 36px;
}

.ds-browse__section h2 {
	font-size: 1.25rem;
}

.ds-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.ds-tile {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface-2);
}

.ds-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.55) saturate(1.1);
	transition: transform 0.5s var(--ease), filter 0.3s;
}

.ds-tile:hover img {
	transform: scale(1.06);
	filter: brightness(0.7);
}

.ds-tile__label {
	position: absolute;
	left: 14px;
	bottom: 12px;
	right: 14px;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.ds-tile__label small {
	display: block;
	color: #e0e0e6;
	font-size: 0.78rem;
	font-weight: 500;
}

.ds-advsearch {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
	padding: 8px var(--gutter) 64px;
	box-sizing: content-box;
}

.ds-field {
	display: grid;
	gap: 6px;
}

.ds-field--wide {
	grid-column: 1 / -1;
}

.ds-field label {
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 600;
}

.ds-field input,
.ds-field select {
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

.ds-field select option {
	background: var(--surface);
}

.ds-field--submit {
	align-content: end;
}

.ds-mappage {
	min-height: calc(100vh - var(--header-h));
}

/* --------------------------------------------------------------------------
   Footer and consent
   -------------------------------------------------------------------------- */

.ds-footer {
	margin-top: 32px;
	border-top: 1px solid var(--line);
	background: #08080b;
	color: var(--muted);
	font-size: 0.92rem;
}

.ds-footer__inner {
	display: grid;
	grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr));
	gap: 32px;
	padding: 48px var(--gutter) 32px;
}

.ds-footer__brand p {
	max-width: 420px;
	margin: 14px 0 18px;
}

.ds-footer h2 {
	margin-bottom: 12px;
	color: var(--text);
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ds-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ds-footer li {
	margin-bottom: 8px;
}

.ds-footer a:hover {
	color: #fff;
}

.ds-newsletter {
	display: flex;
	gap: 8px;
	max-width: 420px;
}

.ds-newsletter input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
}

.ds-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding: 18px var(--gutter) 28px;
	border-top: 1px solid var(--line);
	font-size: 0.82rem;
}

.ds-footer__bottom p {
	margin: 0;
}

.ds-footer__social {
	display: flex;
	gap: 18px;
}

.ds-footer__social li {
	margin: 0;
}

.ds-consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 120;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 720px;
	margin: 0 auto;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface-2);
	box-shadow: var(--shadow);
	font-size: 0.9rem;
}

.ds-consent[hidden] {
	display: none;
}

.ds-consent p {
	margin: 0;
}

.ds-consent a {
	color: var(--accent-hover);
}

.ds-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 130;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--text);
	color: var(--bg);
	font-weight: 600;
	font-size: 0.9rem;
	transform: translate(-50%, 20px);
	opacity: 0;
	transition: opacity 0.25s, transform 0.25s var(--ease);
	pointer-events: none;
}

.ds-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* WP admin bar offset */
.admin-bar .ds-header {
	top: 32px;
}

.admin-bar .ds-drawer {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .ds-header,
	.admin-bar .ds-drawer {
		top: 46px;
	}
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.ds-watch {
		grid-template-columns: minmax(0, 1fr);
	}

	.ds-watch__side .ds-upnext {
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
		gap: 14px 18px;
	}

	.ds-header__add span {
		display: none;
	}

	.ds-header__add {
		padding: 0.6em;
	}
}

@media (max-width: 1360px) {
	.ds-search {
		width: 240px;
	}
}

@media (max-width: 1100px) {
	:root {
		--header-h: 58px;
	}

	.ds-header__nav {
		display: none;
	}

	.ds-header__menu,
	.ds-header__searchtoggle {
		display: inline-grid;
	}

	.ds-header__inner {
		gap: 6px;
	}

	.ds-logo {
		margin-right: auto;
	}

	.ds-header__add {
		display: none;
	}

	.ds-search {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: auto;
		padding: 10px var(--gutter);
		background: rgba(11, 11, 15, 0.97);
		border-bottom: 1px solid var(--line);
		display: none;
	}

	.ds-header.is-search-open .ds-search {
		display: block;
	}

	.ds-search__form {
		height: 46px;
	}

	.ds-suggest {
		left: var(--gutter);
		right: var(--gutter);
	}

	.ds-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.ds-footer__brand {
		grid-column: 1 / -1;
	}

	.ds-row__nav {
		display: none;
	}

	.ds-row__more {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 640px) {
	.ds-hero {
		height: clamp(480px, 78vh, 640px);
	}

	.ds-hero__slide::after {
		background: linear-gradient(to top, var(--bg) 4%, rgba(11, 11, 15, 0.75) 40%, rgba(11, 11, 15, 0.1) 75%);
	}

	.ds-hero__content {
		bottom: 64px;
	}

	.ds-hero__excerpt {
		-webkit-line-clamp: 2;
	}

	.ds-hero__dots {
		left: var(--gutter);
		right: auto;
		bottom: 30px;
	}

	.home .ds-rows {
		margin-top: 0;
	}

	.ds-btn--lg {
		padding: 0.75em 1.2em;
		font-size: 1rem;
	}

	.ds-row__track {
		grid-auto-columns: 72vw;
		gap: 12px;
	}

	.ds-row--ranked .ds-row__track {
		grid-auto-columns: 80vw;
	}

	.ds-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.ds-watch {
		padding-top: 0;
		padding-left: 0;
		padding-right: 0;
		gap: 20px;
	}

	.ds-watch__main > :not(.ds-player),
	.ds-watch__side {
		margin-left: var(--gutter);
		margin-right: var(--gutter);
	}

	.ds-player {
		border-radius: 0;
	}

	.ds-watch__side .ds-upnext {
		grid-template-columns: minmax(0, 1fr);
	}

	.ds-upnext__item {
		grid-template-columns: 140px minmax(0, 1fr);
	}

	.ds-footer__inner {
		grid-template-columns: 1fr;
	}

	.ds-newsletter {
		flex-direction: column;
	}

	.ds-footer__bottom {
		flex-direction: column;
	}
}

/* --------------------------------------------------------------------------
   Ad places (inc/ads.php) – fixed places, reserved height, no overlays
   -------------------------------------------------------------------------- */

.ds-ad-wrap {
	max-width: 1800px;
	margin: 0 auto clamp(28px, 4vw, 44px);
	padding: 0 var(--gutter);
}

.ds-ad-wrap:empty {
	display: none;
}

.ds-ad {
	display: block;
	margin: 0;
	text-align: center;
}

.ds-ad__label {
	display: block;
	margin-bottom: 6px;
	color: var(--faint);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Reserved height so the page does not jump while the ad loads. */
.ds-ad__box {
	min-height: 100px;
	overflow: hidden;
	border-radius: var(--radius-sm);
}

.ds-ad--auto .ds-ad__box,
.ds-ad--watch_bottom .ds-ad__box,
.ds-ad--home_1 .ds-ad__box,
.ds-ad--home_2 .ds-ad__box,
.ds-ad--article_end .ds-ad__box {
	min-height: 120px;
}

.ds-ad--watch_top {
	margin: 18px 0 4px;
}

.ds-ad--watch_top .ds-ad__box {
	min-height: 90px;
}

.ds-ad--watch_side {
	margin-bottom: 22px;
}

.ds-ad--watch_side .ds-ad__box {
	min-height: 250px;
}

.ds-ad--article {
	margin: 1.8em 0;
}

.ds-ad--article .ds-ad__box,
.ds-ad--article_end .ds-ad__box {
	min-height: 250px;
}

.ds-ad--article_end {
	margin-top: 2em;
}

/* Tile in the video grid: same footprint as a card. */
.ds-ad--infeed {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.ds-ad--infeed .ds-ad__box {
	flex: 1;
	min-height: 0;
	aspect-ratio: 16 / 11;
	border-radius: var(--radius);
}

.ds-ad__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 100%;
	min-height: inherit;
	padding: 12px;
	border: 1px dashed var(--surface-3);
	background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 10px, var(--surface-2) 10px, var(--surface-2) 20px);
	color: var(--muted);
	font-size: 0.85rem;
	text-align: center;
}

.ds-ad__placeholder small {
	color: var(--faint);
	font-size: 0.72rem;
}

.ds-ad .adsbygoogle {
	min-height: inherit;
}

/* Google had no ad for this place: remove it completely. */
.ds-ad:has(ins[data-ad-status="unfilled"]),
.ds-ad-wrap:has(ins[data-ad-status="unfilled"]) {
	display: none;
}

@media (max-width: 1180px) {
	/* The sidebar moves below the description: no rectangle there. */
	.ds-ad--watch_side {
		display: none;
	}
}

@media (max-width: 640px) {
	.ds-ad-wrap:has(.ds-ad--home_2) {
		display: none;
	}

	.ds-ad__box,
	.ds-ad--watch_bottom .ds-ad__box,
	.ds-ad--home_1 .ds-ad__box,
	.ds-ad--article_end .ds-ad__box {
		min-height: 250px;
	}

	.ds-ad--watch_top .ds-ad__box {
		min-height: 100px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.ds-hero__img {
		transform: none !important;
	}
}
