/* =========================================================================
   RDS Live — sistem de design (dark-first)
   ========================================================================= */

/* --- Font: DM Sans (self-hosted, variabil, cu diacritice) ----------------- */
@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url('../fonts/dmsans-latinext.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;
}
@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url('../fonts/dmsans-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Variabile: tema DARK implicită --------------------------------------- */
:root,
:root[data-theme='dark'] {
	--bg:            #0d1117;
	--surface:       #161b22;
	--surface-2:     #1f2630;
	--border:        #2a323d;
	--text:          #e6edf3;
	--text-muted:    #9aa7b4;
	--accent:        #1b9de4;   /* albastru logo — primar */
	--accent-hover:  #3aafee;
	--accent-contrast:#ffffff;
	--accent-2:      #ff3b3b;   /* roșu brand — live / play / favorite */
	--accent-2-hover:#ff5c5c;
	--live:          var(--accent-2);
	--shadow:        0 6px 24px rgba(0, 0, 0, .45);
	--radius:        4px;
	--radius-sm:     4px;
	--header-h:      64px;
	--maxw:          1200px;
	--font:          'DM Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Tema LIGHT (override) ------------------------------------------------- */
:root[data-theme='light'] {
	--bg:            #f6f8fa;
	--surface:       #ffffff;
	--surface-2:     #eef1f5;
	--border:        #e2e6eb;
	--text:          #1a1f26;
	--text-muted:    #5a6470;
	--accent:        #0e84c7;   /* albastru logo (variantă light) */
	--accent-hover:  #0a6ea8;
	--accent-contrast:#ffffff;
	--accent-2:      #e60023;
	--accent-2-hover:#c5001d;
	--live:          var(--accent-2);
	--shadow:        0 6px 24px rgba(20, 30, 50, .10);
}

/* --- Reset minimal --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img, picture, video, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

/* --- Layout ---------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}

.site-content { flex: 1 0 auto; padding-block: 32px; }

/* --- Header (desktop) ------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--surface) 90%, transparent);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--border);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.site-branding { flex: 0 0 auto; display: flex; align-items: center; }
.site-branding img,
.custom-logo { max-height: 40px; width: auto; }
.site-title { font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.site-title:hover { color: var(--accent); }

.main-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.main-nav__list { display: flex; gap: 2px; list-style: none; padding: 0; margin: 0; }
.main-nav__list a {
	display: block;
	padding: 9px 16px;
	border-radius: var(--radius-sm);
	color: var(--text);
	font-weight: 600;
	font-size: .94rem;
	white-space: nowrap;
}
.main-nav__list a:hover,
.main-nav__list .current-menu-item > a,
.main-nav__list .current-menu-parent > a { background: var(--surface-2); color: var(--accent); }
/* Submeniu */
.main-nav__list li { position: relative; }
.main-nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 60;
	min-width: 200px; padding: 6px;
	list-style: none; margin: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.main-nav__list li:hover > .sub-menu,
.main-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* --- Căutare cu dropdown instant ------------------------------------------- */
.header-search { position: relative; flex: 0 0 auto; display: flex; align-items: center; }
.header-search__icon { position: absolute; left: 13px; color: var(--text-muted); pointer-events: none; }
.header-search__input {
	width: 220px; max-width: 38vw;
	padding: 10px 16px 10px 40px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--bg);
	color: var(--text);
	font: inherit; font-size: .9rem;
	outline: none;
	transition: border-color .15s ease, width .2s ease, box-shadow .15s ease;
}
.header-search__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.header-search__results {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
	max-height: 60vh; overflow-y: auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	padding: 6px;
}
.header-search__results a {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 10px; border-radius: var(--radius-sm);
	color: var(--text); font-size: .9rem; font-weight: 600;
}
.header-search__results a:hover,
.header-search__results a.is-active { background: var(--surface-2); color: var(--accent); }
.header-search__results img { width: 34px; height: 34px; border-radius: 4px; object-fit: cover; background: var(--surface-2); flex: 0 0 auto; }
.header-search__results .no-res { padding: 12px; color: var(--text-muted); font-size: .88rem; }

/* Iconița de căutare (mobil) + butonul de închidere — ascunse pe desktop. */
.search-toggle { display: none; }
.header-search__close { display: none; }

/* --- Comutator temă -------------------------------------------------------- */
.theme-toggle {
	flex: 0 0 auto;
	display: grid; place-items: center;
	width: 42px; height: 42px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--bg);
	color: var(--text);
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
:root[data-theme='dark']  .theme-toggle .icon-sun  { display: block; }
:root[data-theme='dark']  .theme-toggle .icon-moon { display: none; }
:root[data-theme='light'] .theme-toggle .icon-moon { display: block; }
:root[data-theme='light'] .theme-toggle .icon-sun  { display: none; }

/* --- Buton meniu mobil ----------------------------------------------------- */
.nav-toggle {
	display: none;
	flex-direction: column; justify-content: center; gap: 5px;
	width: 42px; height: 42px; padding: 0 9px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Footer ---------------------------------------------------------------- */
/* --- Footer pro ------------------------------------------------------------ */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 56px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 32px 28px;
	padding-block: 44px 36px;
}
.footer-col__title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-list a { color: var(--text-muted); font-size: .9rem; }
.footer-list a:hover { color: var(--accent); }

.footer-col--brand .custom-logo,
.footer-col--brand img { max-height: 40px; width: auto; margin-bottom: 14px; }
.footer-col--brand .site-title { display: inline-block; font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.footer-about { color: var(--text-muted); font-size: .9rem; line-height: 1.6; max-width: 42ch; }
.footer-app {
	display: inline-flex; align-items: center; gap: 8px;
	margin-top: 16px; padding: 10px 16px;
	background: var(--accent); color: var(--accent-contrast);
	border-radius: 4px; font-size: .88rem; font-weight: 600;
}
.footer-app:hover { background: var(--accent-hover); color: var(--accent-contrast); }

.site-footer__bottom { border-top: 1px solid var(--border); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; align-items: center; padding-block: 16px; }
.footer-copy { color: var(--text-muted); font-size: .85rem; }
.footer-disclaimer { color: var(--text-muted); font-size: .78rem; opacity: .85; max-width: 60ch; }

@media (max-width: 860px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
	.footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.site-footer__grid { grid-template-columns: 1fr; }
	.footer-bottom__inner { flex-direction: column; align-items: flex-start; }
}

/* --- Conținut generic ------------------------------------------------------ */
.page-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; }
.post-card__title { font-size: 1.25rem; margin-bottom: 6px; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt { color: var(--text-muted); }

/* --- Utilitare ------------------------------------------------------------- */
.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;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px;
	width: auto; height: auto;
	clip: auto; z-index: 1000;
	background: var(--accent); color: var(--accent-contrast);
	padding: 10px 16px; border-radius: var(--radius-sm);
}

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 860px) {
	/* Header aerisit: fără bordură, fără fundal de tip card, fără blur. */
	.site-header { background: var(--bg); border-bottom: 0; backdrop-filter: none; }
	.site-header__inner { position: relative; gap: 4px; padding-block: 10px; min-height: 56px; }

	.nav-toggle { display: flex; order: 1; border-color: transparent; background: transparent; }
	/* Logo perfect centrat (în afara fluxului). */
	.site-branding { order: 2; position: absolute; left: 50%; transform: translateX(-50%); }
	.site-branding img, .custom-logo { max-height: 34px; }
	.search-toggle {
		display: grid; place-items: center; order: 3; margin-left: auto;
		width: 42px; height: 42px; border: 0; background: transparent;
		color: var(--text); cursor: pointer;
	}
	.theme-toggle { order: 4; border-color: transparent; background: transparent; }

	/* Căutarea devine un overlay declanșat de iconiță. */
	.header-search {
		order: 5;
		position: fixed; top: 0; left: 0; right: 0; z-index: 80;
		display: none;
		padding: 12px 16px;
		background: var(--surface);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
	}
	.header-search.is-open { display: flex; align-items: center; }
	.header-search__icon { left: 28px; }
	.header-search__input { width: 100%; max-width: none; padding-right: 44px; }
	.header-search__close {
		display: grid; place-items: center;
		position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
		width: 34px; height: 34px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
	}
	.header-search__results { top: calc(100% - 6px); left: 16px; right: 16px; }

	/* Meniu hamburger glisant. */
	.main-nav {
		order: 6;
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
		max-height: 0; overflow: hidden;
		transition: max-height .25s ease;
	}
	.main-nav.is-open { max-height: 80vh; overflow: auto; }
	.main-nav__list { flex-direction: column; gap: 0; padding: 8px; }
	.main-nav__list a { padding: 12px 14px; }
	.main-nav__list .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}

/* =========================================================================
   FAZA 2 — Hero, bară filtre, grilă canale, carduri
   ========================================================================= */

/* --- Cap pagină principală -------------------------------------------------- */
.home-head { text-align: center; padding: 18px 0 22px; }
.home-head__title {
	font-size: clamp(1.5rem, 4.5vw, 2.5rem);
	font-weight: 800; letter-spacing: -.03em;
}
/* Text SEO la finalul paginii (canalele rămân sus). */
.home-seo { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.home-seo p { text-align: left; }

/* --- Bară filtre ----------------------------------------------------------- */
.channel-filter {
	position: sticky;
	top: var(--header-h);
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	margin-bottom: 8px;
	background: color-mix(in srgb, var(--bg) 90%, transparent);
	backdrop-filter: blur(8px);
}
.channel-filter__search { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.channel-filter__search svg { position: absolute; left: 14px; color: var(--text-muted); pointer-events: none; }
.channel-filter__search input {
	width: 280px; max-width: 60vw;
	padding: 11px 16px 11px 42px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--surface);
	color: var(--text);
	font-size: .95rem;
	outline: none;
	transition: border-color .15s ease;
}
.channel-filter__search input:focus { border-color: var(--accent); }

.channel-filter__pills { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--surface);
	color: var(--text);
	font: inherit; font-size: .88rem; font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.pill--fav.is-active { background: var(--live); border-color: var(--live); }
.pill--fav svg { fill: none; }
.pill--fav.is-active svg { fill: currentColor; }

/* --- Grilă canale ---------------------------------------------------------- */
.channel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
}
.channel-grid__empty,
.channel-grid__noresults { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* --- Card canal ------------------------------------------------------------ */
.channel-card {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 4px;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.channel-card.is-hidden { display: none; }
.channel-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
	border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.channel-card__link { display: block; color: var(--text); }

/* Imaginea umple cardul (fără spațiu/padding). */
.channel-card__thumb {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 16 / 9;
	background: var(--surface-2);
	overflow: hidden;
}
.channel-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.channel-card:hover .channel-card__img { transform: scale(1.05); }
.channel-card__placeholder {
	width: 100%; height: 100%;
	display: grid; place-items: center;
	font-size: 2.6rem; font-weight: 800; color: #fff;
	background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
}
/* Play overlay subtil la hover */
.channel-card__thumb::after {
	content: '';
	position: absolute; inset: 0;
	background: center / 42px no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23ff3b3b'/%3E%3Cpath d='M9 7.5v9l7-4.5z' fill='%23fff'/%3E%3C/svg%3E"),
		color-mix(in srgb, #000 26%, transparent);
	opacity: 0; transition: opacity .2s ease;
	pointer-events: none;
}
.channel-card:hover .channel-card__thumb::after { opacity: 1; }

/* Body: icon gen (stânga, fără fundal) + text stivuit (titlu / acum). */
.channel-card__body { display: flex; align-items: center; gap: 8px; padding: 9px 12px; }
.channel-card__genre {
	flex: 0 0 auto;
	display: inline-flex; align-items: center;
	color: var(--accent);
}
.channel-card__genre svg { width: 20px; height: 20px; }
.channel-card__text { min-width: 0; flex: 1 1 auto; }
.channel-card__title {
	font-size: .8125rem; font-weight: 600; line-height: 1.25; color: var(--text);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	transition: color .15s ease;
}
.channel-card:hover .channel-card__title { color: var(--accent); }
.channel-card__now,
.channel-card__cat {
	display: block; margin-top: 1px;
	font-size: .75rem; font-weight: 500; color: var(--text-muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.channel-card__now-dot { display: inline-block; vertical-align: middle; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--accent-2); animation: rds-pulse 1.6s ease-in-out infinite; }
@keyframes rds-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* --- Rating pe card: stea (plină/parțială) + medie, sus-stânga -------------- */
.channel-card__rating {
	position: absolute; top: 9px; left: 9px; z-index: 2;
	display: inline-flex; align-items: center; gap: 4px;
	color: #fff;
	font-size: .74rem; font-weight: 700; line-height: 1;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .75));
	pointer-events: none;
}
.card-star { position: relative; display: inline-block; width: 13px; height: 13px; line-height: 0; }
.card-star__bg svg { fill: rgba(255, 255, 255, .4); display: block; }
.card-star__fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; width: 0; }
.card-star__fill svg { fill: #ffc83d; display: block; }
.card-star__num { letter-spacing: .01em; }

/* --- Favorite: doar inima, fără fundal ------------------------------------- */
.channel-card__fav {
	position: absolute; top: 7px; right: 7px; z-index: 2;
	display: grid; place-items: center;
	width: 32px; height: 32px;
	border: 0; background: transparent;
	color: #fff; cursor: pointer;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .65));
	transition: transform .15s ease, color .15s ease;
}
.channel-card__fav svg { fill: none; stroke: currentColor; stroke-width: 2; transition: fill .15s ease, stroke .15s ease; }
.channel-card__fav:hover { transform: scale(1.12); color: var(--accent-2); }
.channel-card.is-fav .channel-card__fav { color: var(--accent-2); }
.channel-card.is-fav .channel-card__fav svg { fill: var(--accent-2); stroke: var(--accent-2); }

@media (max-width: 600px) {
	.channel-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.channel-filter__search input { width: 100%; max-width: none; }
	.channel-filter__search { flex: 1 1 100%; }
}

/* =========================================================================
   FAZA 3 — Pagina canal: player, taburi
   ========================================================================= */
.single-canal { width: 100%; }
/* Conținutul ocupă toată lățimea (până la 1200px containerul). */

.breadcrumbs { color: var(--text-muted); font-size: .85rem; margin-bottom: 12px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

.canal-title { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 18px; }
.canal-title span { color: var(--accent-2); font-weight: 800; }

/* --- Player ---------------------------------------------------------------- */
.player { margin-bottom: 28px; }
.player__stage {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.player__video,
.player__iframe {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	border: 0;
	background: #000;
}
.player__video { object-fit: contain; }

.player__overlay {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	border: 0; cursor: pointer;
	background: radial-gradient(circle at center, rgba(0,0,0,.25), rgba(0,0,0,.65));
	transition: background .2s ease;
}
.player__overlay:hover { background: radial-gradient(circle at center, rgba(0,0,0,.15), rgba(0,0,0,.55)); }
.player__play {
	display: grid; place-items: center;
	width: 76px; height: 76px;
	border-radius: 50%;
	background: var(--accent-2);
	color: #fff;
	padding-left: 4px;
	box-shadow: 0 8px 30px rgba(0,0,0,.5);
	transition: transform .2s ease, background .2s ease;
}
.player__overlay:hover .player__play { transform: scale(1.08); background: var(--accent-2-hover); }

.player__spinner {
	position: absolute; top: 50%; left: 50%;
	width: 48px; height: 48px; margin: -24px 0 0 -24px;
	border: 4px solid rgba(255,255,255,.2);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rds-spin .8s linear infinite;
}
@keyframes rds-spin { to { transform: rotate(360deg); } }

.player__error {
	position: absolute; inset: auto 0 0 0;
	padding: 12px 16px;
	background: color-mix(in srgb, var(--accent) 92%, #000);
	color: #fff; text-align: center; font-weight: 600; font-size: .9rem;
}

/* --- Taburi surse ---------------------------------------------------------- */
.player__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.player__tab {
	padding: 9px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font: inherit; font-size: .9rem; font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.player__tab:hover { border-color: var(--accent); color: var(--accent); }
.player__tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

.player__hint { color: var(--text-muted); font-size: .85rem; margin-top: 10px; }
.player-empty { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; color: var(--text-muted); }

/* =========================================================================
   FAZA 4 — EPG (Acum / Urmează / Program)
   ========================================================================= */
.epg { margin: 24px 0 8px; }
.epg-nownext { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
@media (max-width: 560px) { .epg-nownext { grid-template-columns: 1fr; } }

.epg-now, .epg-next {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px 18px;
}
.epg-now { position: relative; border-color: color-mix(in srgb, var(--accent-2) 40%, var(--border)); }
.epg-now__label {
	display: inline-block;
	font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	color: #fff; background: var(--live);
	padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.epg-next h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 8px; }
.epg-time { color: var(--text-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.epg-title { font-weight: 700; font-size: 1.05rem; margin: 2px 0 4px; }
.epg-next .epg-title { font-size: .95rem; }
.epg-desc { color: var(--text-muted); font-size: .88rem; line-height: 1.5; }

.epg-progress { height: 5px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.epg-progress span { display: block; height: 100%; background: var(--accent-2); border-radius: 4px; transition: width 1s linear; }

.epg-schedule-wrap { margin-top: 16px; }
.epg-schedule-wrap > summary {
	cursor: pointer; font-weight: 600; font-size: .92rem;
	padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: var(--surface); list-style: none; user-select: none;
}
.epg-schedule-wrap > summary::-webkit-details-marker { display: none; }
.epg-schedule-wrap > summary::after { content: '▾'; float: right; color: var(--text-muted); }
.epg-schedule-wrap[open] > summary::after { content: '▴'; }

.epg-schedule { max-height: 420px; overflow-y: auto; margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.epg-item { display: grid; grid-template-columns: 110px 1fr; gap: 4px 14px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.epg-item:last-child { border-bottom: 0; }
.epg-item .epg-time { grid-row: span 2; align-self: start; }
.epg-item .epg-title { font-size: .92rem; margin: 0; }
.epg-item .epg-desc { font-size: .82rem; }
.epg-item.is-now { background: color-mix(in srgb, var(--accent-2) 10%, transparent); }
.epg-item.is-now .epg-title { color: var(--accent-2); }
.epg-empty { color: var(--text-muted); }

/* --- Bară meta sub titlu (canal) ------------------------------------------- */
.canal-header { margin-bottom: 18px; }
.canal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.canal-meta__live {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px; border-radius: 4px;
	background: var(--accent-2); color: #fff;
	font-size: .72rem; font-weight: 800; letter-spacing: .06em;
}
.canal-meta__pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: rds-pulse 1.6s ease-in-out infinite; }
.canal-meta__cat { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 600; font-size: .88rem; }
.canal-meta__cat:hover { color: var(--accent); }
.canal-meta__cat svg { width: 18px; height: 18px; }
.canal-meta__now { color: var(--text-muted); font-size: .88rem; }
.canal-meta__now strong { color: var(--text); font-weight: 600; }

/* --- Buton standard -------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 0; border-radius: 4px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: background .15s ease; }
.btn--primary { background: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }

/* --- Canale similare ------------------------------------------------------- */
.canale-similare { margin-top: 48px; }
.section-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.canal-content { margin-top: 28px; }

/* =========================================================================
   Comentarii
   ========================================================================= */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 24px; }
.comments-title span { color: var(--accent); }

.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 0; padding: 16px 0 0 clamp(16px, 4vw, 40px); }
.comment-item { margin-bottom: 16px; }

.comment-body { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 16px 18px; }
.comment-avatar img { width: 44px; height: 44px; border-radius: 50%; display: block; background: var(--surface-2); }
.comment-main { flex: 1 1 auto; min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.comment-author { font-weight: 700; font-size: .95rem; color: var(--text); }
.comment-date { font-size: .78rem; color: var(--text-muted); }
.comment-content { color: var(--text); font-size: .94rem; line-height: 1.6; }
.comment-content p { margin: 0 0 .5em; }
.comment-awaiting { font-size: .82rem; color: var(--accent-2); margin-bottom: 6px; }
.comment-actions { margin-top: 8px; }
.comment-reply-link {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: .82rem; font-weight: 600; color: var(--accent);
}
.comment-reply-link:hover { color: var(--accent-hover); }

/* --- Formular comentariu --------------------------------------------------- */
.comment-respond { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 24px; }
.comment-reply-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.comment-reply-title small { margin-left: 10px; font-weight: 500; }
.comment-notes { color: var(--text-muted); font-size: .85rem; margin-bottom: 16px; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form-comment { grid-column: 1 / -1; }
.comment-form-author, .comment-form-email, .comment-form-url { display: grid; }
@media (min-width: 600px) {
	.comment-form { grid-template-columns: 1fr 1fr; }
	.comment-form-url { grid-column: 1 / -1; }
}
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 4px;
	color: var(--text);
	font: inherit; font-size: .92rem;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.comment-form-cookies-consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 500; }
.form-submit { grid-column: 1 / -1; margin: 0; }

/* =========================================================================
   Conținut editorial (entry-content), pagini standard, hero intro
   ========================================================================= */
.entry-content { line-height: 1.7; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 1.5rem; margin-top: 1.4em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .3em; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }

.page-standard { max-width: 820px; margin-inline: auto; }
.page-title { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; margin-bottom: 22px; }
.page-subtitle { color: var(--text-muted); margin-top: -10px; margin-bottom: 22px; }


/* --- Bară acțiuni canal: rating + share ------------------------------------ */
.canal-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 18px 0 8px;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

/* Rating (stele) */
.rating { display: flex; align-items: center; gap: 12px; }
.rating__stars { position: relative; display: inline-block; line-height: 0; }
.rating__stars-bg,
.rating__stars-fill { display: flex; gap: 3px; }
/* Stelele NU se comprimă — stratul „fill" trunchiază prin overflow, nu prin shrink. */
.rating__stars-bg svg,
.rating__stars-fill svg { flex: 0 0 auto; display: block; }
.rating__stars-bg svg { fill: var(--border); }
.rating__stars-fill {
	position: absolute;
	top: 0; left: 0;
	overflow: hidden;
	white-space: nowrap;
	width: 0;
	pointer-events: none;
}
.rating__stars-fill svg { fill: #f7b500; }
.rating__hit { position: absolute; inset: 0; display: flex; gap: 3px; z-index: 2; }
.rating__btn {
	flex: 1 0 auto;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.rating__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.rating[data-voted="1"] .rating__btn { cursor: default; }
.rating__meta { display: flex; align-items: baseline; gap: 6px; font-size: .85rem; color: var(--text-muted); }
.rating__avg { font-size: 1.05rem; font-weight: 700; color: var(--text); }

/* Popup / toast (mulțumire vot / deja votat) */
.rds-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translate(-50%, 16px);
	z-index: 9999;
	max-width: min(92vw, 420px);
	padding: 12px 18px;
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	font-size: .9rem; font-weight: 600;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}
.rds-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.rds-toast[data-type="success"] { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.rds-toast[data-type="success"]::before { content: ''; }
.rating__thanks { color: var(--accent); font-weight: 600; }

/* Share */
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share__label { font-size: .85rem; color: var(--text-muted); }
.share__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	font-size: .85rem;
	font-weight: 600;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text);
	cursor: pointer;
	transition: filter .15s ease, background .15s ease, border-color .15s ease;
}
.share__btn:hover { filter: brightness(1.08); }
.share__btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.share__btn--native { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

@media (max-width: 560px) {
	.canal-actions { flex-direction: column; align-items: stretch; }
	.share { justify-content: center; }
	.rating { justify-content: center; }
}

/* --- Pagini agregate: Filme la TV / Meciuri live --------------------------- */
.listing-head { margin: 8px 0 22px; }
.listing-title { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 8px; }
.listing-intro { color: var(--text-muted); max-width: 70ch; }
.listing-empty { padding: 40px; text-align: center; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* --- Pagina Categorii ------------------------------------------------------ */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}
.cat-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card__head { display: flex; align-items: center; gap: 12px; }
.cat-card__icon {
	flex: 0 0 auto;
	display: inline-grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	color: var(--accent);
}
.cat-card__icon svg { width: 24px; height: 24px; }
.cat-card__meta { display: flex; flex-direction: column; min-width: 0; }
.cat-card__name { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.cat-card__count { font-size: .8rem; color: var(--text-muted); }

.cat-card__logos { display: flex; gap: 6px; }
.cat-card__logo {
	width: 40px; height: 40px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	overflow: hidden;
	display: grid; place-items: center;
}
.cat-card__logo img { width: 100%; height: 100%; object-fit: contain; }

.cat-card__cta {
	display: inline-flex; align-items: center; gap: 4px;
	margin-top: auto;
	font-size: .85rem; font-weight: 600;
	color: var(--accent);
}
.cat-card:hover .cat-card__cta { gap: 7px; }
.cat-seo { margin-top: 32px; }

.listing-day { margin-bottom: 28px; }
.listing-day__title {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--accent);
	display: inline-block;
}
.listing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.listing-item__link {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	transition: border-color .15s ease, background .15s ease;
}
.listing-item__link:hover { border-color: var(--accent); background: var(--surface-2); }
.listing-item.is-live .listing-item__link { border-color: color-mix(in srgb, var(--accent-2) 50%, var(--border)); }

.listing-item__time { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.listing-item__time time { font-size: 1.05rem; font-weight: 700; }
.listing-item__range { font-size: .72rem; color: var(--text-muted); }
.listing-item__livebadge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--accent-2);
}
.listing-item__pulse {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--accent-2);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 60%, transparent);
	animation: rds-live-ring 1.6s infinite;
}
/* Numele propriu (nu „rds-pulse"!) ca să nu suprascrie pulsul cardurilor. */
@keyframes rds-live-ring {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 55%, transparent); }
	70% { box-shadow: 0 0 0 7px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

.listing-item__main { min-width: 0; }
.listing-item__name { display: block; font-weight: 600; font-size: .98rem; }
.listing-item__desc {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .8rem;
	color: var(--text-muted);
	margin-top: 2px;
}
.listing-item__channel { display: flex; align-items: center; gap: 8px; }
.listing-item__logo { width: 44px; height: 44px; object-fit: contain; border-radius: var(--radius-sm); background: var(--surface-2); }
.listing-item__chname { font-size: .82rem; color: var(--text-muted); max-width: 130px; }

@media (max-width: 560px) {
	.listing-item__link { grid-template-columns: 70px 1fr; row-gap: 6px; }
	.listing-item__channel { grid-column: 1 / -1; }
	.listing-item__chname { max-width: none; }
	.listing-item__desc { display: none; }
}

/* --- Categorii în footer (SEO intern) -------------------------------------- */
