/*!
Theme Name: Max-Flix
Description: Netflix-style medical video platform for EACMFS.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: max-flix
*/

/* ==========================================================================
   1. Custom Properties
   ========================================================================== */

:root {
	/* Colors */
	--color-bg:            #0b1a2e;
	--color-surface:       #122240;
	--color-surface-hover: #1a3058;
	--color-header:        rgba(11, 26, 46, 0.95);
	--color-primary:       #365FA6;
	--color-primary-light: #4a7bc8;
	--color-primary-dark:  #2a4d8a;
	--color-accent:        #BFCDE8;
	--color-text:          #ffffff;
	--color-text-muted:    rgba(255, 255, 255, 0.6);
	--color-text-dim:      rgba(255, 255, 255, 0.35);
	--color-border:        rgba(255, 255, 255, 0.08);
	--color-like:          #e74c3c;

	/* Spacing */
	--space-xs:  0.25rem;
	--space-sm:  0.5rem;
	--space-md:  1rem;
	--space-lg:  1.5rem;
	--space-xl:  2.5rem;
	--space-2xl: 4rem;

	/* Layout */
	--header-h:  4rem;
	--gutter:    clamp(1rem, 3vw, 3rem);
	--max-width: 125rem;

	/* Typography */
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', monospace;

	/* Transitions */
	--ease:     cubic-bezier(0.4, 0, 0.2, 1);
	--duration: 0.25s;

	/* Border radius */
	--radius-sm: 0.25rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-full: 50%;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

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

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

body {
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

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

button {
	cursor: pointer;
	background: none;
	border: none;
	color: inherit;
	font: inherit;
}

ul, ol {
	list-style: none;
}

[hidden] {
	display: none !important;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

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

h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h3 { font-size: clamp(0.875rem, 1.5vw, 1.125rem); }

p {
	margin-bottom: var(--space-md);
}

/* Material Symbols config */
.material-symbols-rounded {
	font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	vertical-align: middle;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
	padding-top: var(--header-h);
}

/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 100%);
	transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.site-header.header--scrolled {
	background: var(--color-header);
	box-shadow: 0 0.125rem 1rem rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(0.75rem);
	-webkit-backdrop-filter: blur(0.75rem);
}

.header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--gutter);
	height: var(--header-h);
	position: relative;
}

/* backdrop-filter creates a containing block for position:fixed children,
   which collapses the fullscreen nav to the header height — disable when open */
.site-header:has(.nav--open) {
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

/* Brand */
.header__brand {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	flex-shrink: 0;
}

.header__logo {
	height: 2.25rem;
	width: auto;
}

.header__wordmark {
	font-size: 1.25rem;
	font-weight: 300;
	letter-spacing: 0.05em;
	color: var(--color-accent);
}

.header__wordmark strong {
	font-weight: 800;
	color: var(--color-text);
}

/* Navigation */
.header__nav {
	flex: 1;
}

.header__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
}

.header__menu > li > a {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	padding: var(--space-sm) var(--space-md);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-text-muted);
	border-radius: var(--radius-md);
	transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.header__menu > li > a {
	position: relative;
}

.header__menu > li > a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 50%;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--color-primary-light);
	transform: translateX(-50%) scaleX(0);
	transform-origin: center;
	transition: transform 0.18s ease;
}

.header__menu > li > a:hover,
.header__menu > li > a:focus {
	color: #fff;
	background: none;
}

.header__menu > li > a:hover::after,
.header__menu > li > a:focus::after {
	transform: translateX(-50%) scaleX(1);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header__menu > .current-menu-item > a,
.header__menu > .current-menu-ancestor > a,
.header__menu > .current-page-ancestor > a {
	color: #fff;
}

.header__menu > .current-menu-item > a::after,
.header__menu > .current-menu-ancestor > a::after,
.header__menu > .current-page-ancestor > a::after {
	transform: translateX(-50%) scaleX(1);
}

/* Dropdown */
.header__dropdown {
	position: relative;
}

.header__submenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 14rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);
	padding: var(--space-sm) 0;
	z-index: 100;
}

.header__dropdown:hover .header__submenu,
.header__dropdown:focus-within .header__submenu {
	display: block;
}

.header__submenu li a {
	display: block;
	padding: var(--space-sm) var(--space-lg);
	font-size: 0.875rem;
	color: var(--color-text-muted);
	transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.header__submenu li a:hover {
	color: var(--color-text);
	background: rgba(255, 255, 255, 0.06);
}

/* Actions (user + hamburger) */
.header__actions {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-left: auto;
}

.header__submit {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.35rem 0.75rem 0.35rem 0.55rem;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	background: rgba(255, 255, 255, 0.08);
	color: var(--color-text);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.header__submit:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.3);
}

.header__submit .material-symbols-rounded {
	font-size: 1.1rem;
}

/* Header search */
.header-search {
	display: flex;
	align-items: center;
	position: relative;
}

.header-search__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-full);
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-accent);
	transition: background var(--duration) var(--ease);
}

.header-search__toggle:hover {
	background: rgba(255, 255, 255, 0.1);
}

.header-search__toggle .material-symbols-rounded {
	font-size: 1.4rem;
}

.header-search__form {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	width: 0;
	opacity: 0;
	pointer-events: none;
	transition: width 0.3s var(--ease), opacity 0.2s var(--ease);
}

.header-search.is-open .header-search__toggle {
	display: none;
}

.header-search.is-open .header-search__form {
	width: min(20rem, 50vw);
	opacity: 1;
	pointer-events: auto;
}

.header-search__input {
	flex: 1;
	background: none;
	border: none;
	color: var(--color-text);
	font-size: 0.875rem;
	font-family: inherit;
	padding: 0.5rem 0 0.5rem 1rem;
	outline: none;
	min-width: 0;
}

.header-search__input::placeholder {
	color: var(--color-text-muted);
}

.header-search__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text-muted);
	transition: color var(--duration) var(--ease);
}

.header-search__close:hover {
	color: var(--color-text);
}

.header-search__close .material-symbols-rounded {
	font-size: 1.1rem;
}

.header__user {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font: inherit;
	text-decoration: none;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-full);
	color: var(--color-accent);
	transition: background var(--duration) var(--ease);
}

.header__user:hover {
	background: rgba(255, 255, 255, 0.1);
}

.header__user .material-symbols-rounded {
	font-size: 1.75rem;
}

.header__avatar {
	width: 1.75rem;
	height: 1.75rem;
	border-radius: var(--radius-full);
	object-fit: cover;
}

.header__hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-md);
	color: var(--color-text);
}

.header__hamburger:hover {
	background: rgba(255, 255, 255, 0.1);
}

.header__hamburger .material-symbols-rounded {
	font-size: 1.5rem;
}

/* ==========================================================================
   6. Hero Slideshow
   ========================================================================== */

.hero {
	position: relative;
	height: 70vh;
	margin-top: calc( var(--header-h) * -1 );
	overflow: hidden;
}

.hero__slides {
	position: relative;
	height: 100%;
}

.hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	z-index: 0;
}

.hero__slide--active {
	opacity: 1;
	z-index: 1;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg,   var(--color-bg) 0%, transparent 50%),
		linear-gradient(90deg,  rgba(11,26,46,0.85) 0%, transparent 60%),
		linear-gradient(180deg, rgba(11,26,46,0.4) 0%, transparent 30%);
}

.hero__content {
	position: relative;
	z-index: 2;
	max-width: 40rem;
	padding: var(--space-2xl) var(--gutter);
	padding-bottom: var(--space-2xl);
}

.hero__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	margin-bottom: var(--space-md);
	text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.5);
}

.hero__speakers {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	font-size: 0.9375rem;
	color: var(--color-accent);
	margin-bottom: var(--space-sm);
}

.hero__speakers .material-symbols-rounded {
	font-size: 1.125rem;
}

.hero__desc {
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	line-height: 1.5;
	margin-bottom: var(--space-lg);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero__actions {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	flex-wrap: wrap;
	margin-bottom: var(--space-md);
}

.hero__duration {
	font-size: 0.8125rem;
	color: var(--color-text-dim);
}

/* Hero social action buttons */
.hero__social {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-left: var(--space-sm);
	position: relative;
}

.hero__social .action-btn {
	width: 2.5rem;
	height: 2.5rem;
}

.hero__social .action-btn .material-symbols-rounded {
	font-size: 1.25rem;
}

/* Hero indicators / dots */
.hero__indicators {
	position: absolute;
	bottom: 2.5rem;
	right: var(--gutter);
	display: flex;
	gap: 0.5rem;
	z-index: 10;
}

.hero__dot {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, 0.3);
	border: 2px solid rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
	padding: 0;
}

.hero__dot--active,
.hero__dot:hover {
	background: var(--color-primary-light);
	border-color: var(--color-primary-light);
	transform: scale(1.2);
}

/* Hero arrows */
.hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 3rem;
	height: 3rem;
	border-radius: var(--radius-full);
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.hero:hover .hero__arrow {
	opacity: 1;
}

.hero__arrow:hover {
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
}

.hero__arrow--prev {
	left: var(--gutter);
}

.hero__arrow--next {
	right: var(--gutter);
}

.hero__arrow .material-symbols-rounded {
	font-size: 1.75rem;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	padding: 0.625rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
	border-radius: var(--radius-md);
	transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.btn:hover {
	transform: translateY(-0.0625rem);
}

.btn--primary {
	background: var(--color-primary);
	color: var(--color-text);
}

.btn--primary:hover {
	background: var(--color-primary-light);
}

.btn--secondary {
	background: rgba(255, 255, 255, 0.12);
	color: var(--color-text);
	backdrop-filter: blur(0.5rem);
}

.btn--secondary:hover {
	background: rgba(255, 255, 255, 0.2);
}

.btn .material-symbols-rounded {
	font-size: 1.25rem;
}

/* ==========================================================================
   6b. Banner
   ========================================================================== */

.banner {
	max-width: var(--max-width);
	margin-left: auto;
	margin-right: auto;
	padding: var(--space-lg) var(--gutter);
}

.banner__img {
	width: 100%;
	border-radius: var(--radius-lg);
	display: block;
}

/* ==========================================================================
   7. Content Rows
   ========================================================================== */

.content-row {
	max-width: var(--max-width);
	margin-left: auto;
	margin-right: auto;
	padding: var(--space-xl) 0 var(--space-md);
}

.content-row__title {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: 0 var(--gutter);
	margin-bottom: var(--space-lg);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text);
}

.content-row__title .material-symbols-rounded {
	font-size: 1.375rem;
	color: var(--color-primary-light);
}

.content-row__view-all {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-text-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.content-row__view-all:hover {
	color: var(--color-text);
}

.content-row__view-all .material-symbols-rounded {
	font-size: 1rem;
	color: inherit;
}

/* ── Page banner (ELS, etc.) ─────────────────────────────────── */
.page-banner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 3.5rem var(--gutter) 0;
}

.page-banner__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 0.5rem;
}

.page-banner__sub {
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	margin: 0;
}

.page-banner__empty {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 4rem var(--gutter);
	color: var(--color-text-muted);
	font-size: 0.9375rem;
}

/* ── Session Archive: filters + grid ─────────────────────── */

.session-archive__filters {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--space-md) var(--gutter) 0;
}

.session-archive__filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	align-items: center;
}

.session-archive__filter {
	appearance: none;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	color: var(--color-accent);
	font-size: 0.8125rem;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	cursor: pointer;
	transition: border-color var(--duration) var(--ease);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23BFCDE8'%3E%3Cpath d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.6rem center;
}

.session-archive__filter:hover,
.session-archive__filter:focus {
	border-color: var(--color-primary-light);
	outline: none;
}

.session-archive__search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 10rem;
	max-width: 18rem;
}

.session-archive__search > .material-symbols-rounded {
	position: absolute;
	left: 0.625rem;
	font-size: 1.125rem;
	color: var(--color-text-dim);
	pointer-events: none;
}

.session-archive__search-input {
	width: 100%;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	color: var(--color-text);
	font-size: 0.8125rem;
	padding: 0.5rem 0.75rem 0.5rem 2.25rem;
	transition: border-color var(--duration) var(--ease);
}

.session-archive__search-input::placeholder {
	color: var(--color-text-dim);
}

.session-archive__search-input:hover,
.session-archive__search-input:focus {
	border-color: var(--color-primary-light);
	outline: none;
}

.session-archive__clear {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	margin-top: var(--space-sm);
	font-size: 0.75rem;
	color: var(--color-text-muted);
	text-decoration: none;
	transition: color var(--duration) var(--ease);
}

.session-archive__clear .material-symbols-rounded {
	font-size: 0.875rem;
}

.session-archive__clear:hover {
	color: var(--color-accent);
}

.session-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: var(--space-lg);
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--space-lg) var(--gutter) var(--space-xl);
}

.session-archive__grid .session-card {
	width: 100%;
}

.session-archive__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: var(--space-2xl) 0;
	color: var(--color-text-muted);
	font-size: 0.9375rem;
}

.session-archive__load-wrap {
	display: flex;
	justify-content: center;
	padding: 0 var(--gutter) var(--space-2xl);
}

.session-archive__load-more {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	color: var(--color-accent);
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.625rem 1.5rem;
	cursor: pointer;
	transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.session-archive__load-more .material-symbols-rounded {
	font-size: 1.25rem;
}

.session-archive__load-more:hover {
	background: var(--color-surface-hover);
	border-color: var(--color-primary-light);
}

.session-archive__load-more:disabled {
	opacity: 0.5;
	cursor: default;
}

@media screen and (max-width: 48rem) {
	.session-archive__search {
		max-width: none;
		flex-basis: 100%;
	}
}

/* Slider wrapper + arrows */
.content-row__wrap {
	position: relative;
}

.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-75%);
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-full);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.7);
	color: var(--color-text);
	cursor: pointer;
	opacity: 0;
	box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.4);
	transition: opacity var(--duration) var(--ease), background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.content-row__wrap:hover .slider-arrow:not(.slider-arrow--hidden) {
	opacity: 1;
}

.slider-arrow:hover {
	background: rgba(0, 0, 0, 0.9);
	transform: translateY(-75%) scale(1.1);
}

.slider-arrow--prev {
	left: var(--space-sm);
}

.slider-arrow--next {
	right: var(--space-sm);
}

.slider-arrow--hidden {
	opacity: 0 !important;
	pointer-events: none;
}

.slider-arrow .material-symbols-rounded {
	font-size: 1.5rem;
}

.content-row__slider {
	display: flex;
	gap: var(--space-md);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: var(--space-md) var(--gutter);
	margin-top: calc( var(--space-md) * -1 );
	scrollbar-width: none;
}

.content-row__slider::-webkit-scrollbar {
	display: none;
}

/* ==========================================================================
   8. Session Card
   ========================================================================== */

.session-card {
	display: block;
	flex: 0 0 auto;
	width: clamp(15rem, 22vw, 20rem);
	scroll-snap-align: start;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-surface);
	transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.session-card:hover {
	transform: scale(1.03);
	box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.4);
	z-index: 2;
}

.session-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.session-card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--color-surface-hover);
}

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

.session-card:hover .session-card__img {
	transform: scale(1.08);
}

.session-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--color-text-dim);
}

.session-card__placeholder .material-symbols-rounded {
	font-size: 3rem;
}

.session-card__duration {
	position: absolute;
	top: var(--space-sm);
	right: var(--space-sm);
	background: rgba(0, 0, 0, 0.7);
	color: var(--color-text);
	font-size: 0.6875rem;
	font-weight: 600;
	padding: 0.125rem 0.5rem;
	border-radius: var(--radius-sm);
	backdrop-filter: blur(0.25rem);
}

.session-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--duration) var(--ease);
	background: rgba(0, 0, 0, 0.3);
}

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

.session-card__play .material-symbols-rounded {
	font-size: 3rem;
	color: var(--color-text);
	filter: drop-shadow(0 0.125rem 0.25rem rgba(0,0,0,0.5));
}

.session-card__info {
	padding: var(--space-sm) var(--space-md) var(--space-sm);
}

.session-card__title {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: var(--space-xs);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.session-card__speakers {
	font-size: 0.75rem;
	color: var(--color-text-muted);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Session card action bar */
.session-card__actions {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	padding: 0 var(--space-md) var(--space-sm);
	position: relative;
}

/* ==========================================================================
   9. Action Buttons (Like, Watchlist, Share)
   ========================================================================== */

.action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--radius-full);
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-text-muted);
	cursor: pointer;
	transition: all var(--duration) var(--ease);
	padding: 0;
}

.action-btn:hover {
	color: var(--color-text);
	border-color: var(--color-text-muted);
	background: rgba(255, 255, 255, 0.08);
}

.action-btn .material-symbols-rounded {
	font-size: 1rem;
}

/* Like active state */
.action-btn--like.action-btn--active {
	color: var(--color-like);
	border-color: var(--color-like);
}

.action-btn--like.action-btn--active:hover {
	background: rgba(231, 76, 60, 0.15);
}

/* Watchlist active state */
.action-btn--watchlist.action-btn--active {
	color: var(--color-primary-light);
	border-color: var(--color-primary-light);
}

.action-btn--watchlist.action-btn--active:hover {
	background: rgba(74, 123, 200, 0.15);
}

/* ==========================================================================
   10. Share Popup
   ========================================================================== */

.share-popup {
	position: absolute;
	bottom: 100%;
	right: 0;
	margin-bottom: 0.5rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);
	padding: var(--space-xs);
	z-index: 100;
	min-width: 10rem;
	white-space: nowrap;
}

.share-popup__item {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	border-radius: var(--radius-sm);
	cursor: pointer;
	width: 100%;
	background: none;
	border: none;
	font: inherit;
	text-decoration: none;
	transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.share-popup__item:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--color-text);
}

.share-popup__item .material-symbols-rounded {
	font-size: 1.125rem;
}

.share-popup__item i {
	font-size: 0.875rem;
	width: 1.25rem;
	text-align: center;
}

/* ==========================================================================
   11. Speaker Card
   ========================================================================== */

.speaker-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 0 0 auto;
	width: 9rem;
	scroll-snap-align: start;
	padding: var(--space-md);
	border-radius: var(--radius-lg);
	transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.speaker-card:hover {
	background: var(--color-surface);
	transform: translateY(-0.25rem);
}

.speaker-card__photo {
	width: 6rem;
	height: 6rem;
	border-radius: var(--radius-full);
	overflow: hidden;
	margin-bottom: var(--space-sm);
	border: 0.1875rem solid var(--color-primary);
	background: var(--color-surface);
}

.speaker-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.speaker-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--color-text-dim);
}

.speaker-card__placeholder .material-symbols-rounded {
	font-size: 2.5rem;
}

.speaker-card__name {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: var(--space-xs);
}

.speaker-card__sessions {
	font-size: 0.6875rem;
	color: var(--color-primary-light);
	margin: 0 0 var(--space-xs);
	font-weight: 600;
}

.speaker-card__country {
	font-size: 0.6875rem;
	color: var(--color-text-muted);
	margin: 0;
}

/* ==========================================================================
   11b. Lecture Card (video-style speaker series)
   ========================================================================== */

.lecture-card {
	display: block;
	flex: 0 0 auto;
	width: clamp(15rem, 22vw, 20rem);
	scroll-snap-align: start;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-surface);
	transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.lecture-card:hover {
	transform: scale(1.03);
	box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.4);
	z-index: 2;
}

.lecture-card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--color-surface-hover);
}

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

.lecture-card:hover .lecture-card__img {
	transform: scale(1.08);
}

.lecture-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.lecture-card__count {
	position: absolute;
	top: var(--space-sm);
	right: var(--space-sm);
	background: rgba(0, 0, 0, 0.7);
	color: var(--color-text);
	font-size: 0.6875rem;
	font-weight: 600;
	padding: 0.125rem 0.5rem;
	border-radius: var(--radius-sm);
	backdrop-filter: blur(0.25rem);
}

.lecture-card__info {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
}

.lecture-card__avatar {
	width: 2rem;
	height: 2rem;
	border-radius: var(--radius-full);
	object-fit: cover;
	border: 2px solid var(--color-primary);
	flex-shrink: 0;
}

.lecture-card__name {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lecture-card__country {
	font-size: 0.6875rem;
	color: var(--color-text-muted);
	margin: 0;
}

/* ==========================================================================
   12. More Info Modal
   ========================================================================== */

.modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-lg);
}

.modal[hidden] {
	display: none !important;
}

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(0.5rem);
	-webkit-backdrop-filter: blur(0.5rem);
}

.modal__dialog {
	position: relative;
	width: 100%;
	max-width: 36rem;
	max-height: 85vh;
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	overflow: hidden;
	overflow-y: auto;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.6);
	animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(1rem);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.modal__header {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.modal__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.modal__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, var(--color-surface) 0%, transparent 60%),
		linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 30%);
}

.modal__close {
	position: absolute;
	top: var(--space-md);
	right: var(--space-md);
	width: 2.25rem;
	height: 2.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	border-radius: var(--radius-full);
	color: var(--color-text);
	z-index: 5;
	transition: background var(--duration) var(--ease);
}

.modal__close:hover {
	background: rgba(0, 0, 0, 0.8);
}

.modal__close .material-symbols-rounded {
	font-size: 1.25rem;
}

.modal__header-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--space-lg);
	z-index: 2;
}

.modal__title {
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: 800;
	line-height: 1.2;
	text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}

.modal__body {
	padding: 0 var(--space-lg) var(--space-lg);
}

.modal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	margin-bottom: var(--space-md);
}

.modal__meta-item {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	font-size: 0.8125rem;
	color: var(--color-accent);
}

.modal__meta-item .material-symbols-rounded {
	font-size: 1rem;
	color: var(--color-primary-light);
}

.modal__desc {
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	line-height: 1.6;
	margin-bottom: var(--space-md);
}

.modal__speakers {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	font-size: 0.875rem;
	color: var(--color-accent);
	margin-bottom: var(--space-lg);
}

.modal__speakers .material-symbols-rounded {
	font-size: 1.125rem;
	color: var(--color-primary-light);
}

.modal__play {
	width: 100%;
	justify-content: center;
}

/* ==========================================================================
   13. Info Boxes
   ========================================================================== */

.info-boxes {
	max-width: var(--max-width);
	margin-left: auto;
	margin-right: auto;
	padding: var(--space-xl) var(--gutter) var(--space-2xl);
}

.info-boxes__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
}

.info-box {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-xl) var(--space-lg);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.info-box:hover {
	transform: translateY(-0.25rem);
	border-color: var(--color-primary);
}

.info-box__icon {
	font-size: 2.5rem;
	color: var(--color-primary-light);
	margin-bottom: var(--space-md);
}

.info-box__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: var(--space-sm);
}

.info-box__desc {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	line-height: 1.6;
	flex: 1;
}

.info-box__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-primary-light);
	padding: var(--space-sm) 0;
	margin-top: var(--space-md);
	transition: color var(--duration) var(--ease), gap var(--duration) var(--ease);
}

.info-box__btn:hover {
	color: var(--color-accent);
	gap: var(--space-sm);
}

.info-box__btn .material-symbols-rounded {
	font-size: 1.125rem;
}

/* ── Submit Video Landing Page ───────────────────────────── */

.submit-hero {
	position: relative;
	overflow: hidden;
	margin-top: calc(-1 * var(--header-h));
	padding-top: var(--header-h);
	min-height: 45vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, var(--color-primary-dark) 0%, #132a4d 35%, var(--color-bg) 100%);
}

.submit-hero__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, var(--color-bg) 100%);
}

.submit-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 40rem;
	padding: var(--space-2xl) var(--gutter);
}

.submit-hero__title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 var(--space-md);
	letter-spacing: -0.02em;
}

.submit-hero__sub {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--color-text-muted);
	margin: 0 0 var(--space-xl);
}

.submit-hero__actions {
	display: flex;
	justify-content: center;
	gap: var(--space-md);
	flex-wrap: wrap;
}

.submit-landing .site-main {
	padding-top: 0;
}

/* Steps section */

.submit-section__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: var(--space-xl);
}

.submit-section__title .material-symbols-rounded {
	font-size: 1.625rem;
	color: var(--color-primary-light);
}

.submit-steps__grid {
	grid-template-columns: repeat(4, 1fr);
}

.submit-steps .info-box {
	position: relative;
	text-align: center;
	align-items: center;
}

.submit-steps__number {
	position: absolute;
	top: var(--space-sm);
	right: var(--space-sm);
	width: 1.5rem;
	height: 1.5rem;
	border-radius: var(--radius-full);
	background: var(--color-primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Requirements section */

.submit-bottom {
	display: flex;
	gap: var(--space-lg);
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--space-xl) var(--gutter) var(--space-2xl);
	align-items: stretch;
}

.submit-requirements {
	flex: 1 1 60%;
	min-width: 0;
}

.submit-requirements__inner {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-xl);
	height: 100%;
}

.submit-requirements__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-lg);
}

.submit-requirements__item {
	display: flex;
	gap: var(--space-md);
	align-items: flex-start;
}

.submit-requirements__item > .material-symbols-rounded {
	font-size: 1.5rem;
	color: var(--color-primary-light);
	flex-shrink: 0;
	margin-top: 0.125rem;
}

.submit-requirements__item strong {
	display: block;
	font-size: 0.9375rem;
	color: var(--color-text);
	margin-bottom: 0.25rem;
}

.submit-requirements__item p {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	line-height: 1.6;
	margin: 0;
}

/* CTA banner */

.submit-cta {
	flex: 1 1 35%;
	min-width: 0;
	display: flex;
}

.submit-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: var(--space-xl);
	width: 100%;
	background: linear-gradient(135deg, rgba(54, 95, 166, 0.15) 0%, rgba(11, 26, 46, 0.8) 100%);
	border: 1px solid rgba(54, 95, 166, 0.2);
	border-radius: var(--radius-lg);
}

.submit-cta__icon {
	font-size: 2.5rem;
	color: var(--color-primary-light);
	display: block;
	margin-bottom: var(--space-md);
}

.submit-cta__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 var(--space-sm);
}

.submit-cta__sub {
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	margin: 0 0 var(--space-xl);
}

.btn--lg {
	padding: 0.75rem 2rem;
	font-size: 1rem;
}

@media screen and (max-width: 48rem) {
	.submit-steps__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.submit-bottom {
		flex-direction: column;
	}

	.submit-requirements__grid {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 30rem) {
	.submit-steps__grid {
		grid-template-columns: 1fr;
	}

	.submit-hero__actions {
		flex-direction: column;
		align-items: center;
	}
}

/* ==========================================================================
   12b. 404 Page
   ========================================================================== */

.error-404 {
	position: relative;
	overflow: hidden;
	margin-top: calc(-1 * var(--header-h));
	padding-top: var(--header-h);
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, var(--color-primary-dark) 0%, #132a4d 30%, var(--color-bg) 100%);
}

.error-404__content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 32rem;
	padding: var(--space-2xl) var(--gutter);
}

.error-404__icon {
	font-size: 3.5rem;
	color: var(--color-primary-light);
	opacity: 0.6;
	display: block;
	margin-bottom: var(--space-md);
}

.error-404__code {
	font-size: clamp(5rem, 12vw, 8rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--color-text);
	margin: 0;
}

.error-404__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-text);
	margin: var(--space-md) 0 var(--space-sm);
}

.error-404__sub {
	font-size: 1rem;
	color: var(--color-text-muted);
	line-height: 1.6;
	margin: 0 0 var(--space-xl);
}

.error-404__actions {
	display: flex;
	justify-content: center;
	gap: var(--space-md);
	flex-wrap: wrap;
}

@media screen and (max-width: 30rem) {
	.error-404__actions {
		flex-direction: column;
		align-items: center;
	}
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.site-footer {
	background: var(--color-surface);
	border-top: 1px solid var(--color-border);
	margin-top: var(--space-2xl);
}

.footer__inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--space-xl) var(--gutter);
}

.footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	margin-bottom: var(--space-lg);
}

.footer__logo-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
}

.footer__logo {
	height: 1.5rem;
	width: auto;
}

.footer__wordmark {
	font-size: 0.9375rem;
	font-weight: 300;
	color: var(--color-accent);
}

.footer__wordmark strong {
	font-weight: 700;
	color: var(--color-text);
}

.footer__nav ul {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer__nav a {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	transition: color var(--duration) var(--ease);
}

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

.footer__bottom {
	border-top: 1px solid var(--color-border);
	padding-top: var(--space-md);
}

.footer__bottom p {
	font-size: 0.75rem;
	color: var(--color-text-dim);
	margin: 0;
}

/* ==========================================================================
   14. Single Session
   ========================================================================== */

/* Hide header on session player page */
.single-session .site-header {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s var(--ease);
}

.single-session .site-header:hover,
.single-session .site-header:focus-within {
	opacity: 1;
	pointer-events: auto;
}

.site-main--session {
	padding-top: 0;
}

/* Player area — full viewport */
.session-player {
	position: relative;
	width: 100%;
	height: 100vh;
	background: #000;
	overflow: hidden;
}

.session-player__back {
	position: absolute;
	top: var(--space-lg);
	left: var(--gutter);
	z-index: 20;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--radius-full);
	border: none;
	background: rgba(0, 0, 0, 0.4);
	color: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.session-player__back:hover {
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
}

.session-player__back .material-symbols-rounded {
	font-size: 1.5rem;
}

/* Thumbnail cover */
.session-player__cover {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #111;
	z-index: 5;
	transition: opacity 0.5s var(--ease);
}

.session-player__cover[hidden] {
	opacity: 0;
	pointer-events: none;
}

.session-player__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--space-2xl) var(--gutter);
	background: radial-gradient(
		ellipse at center,
		rgba(0, 0, 0, 0.6) 0%,
		rgba(0, 0, 0, 0.35) 60%,
		rgba(0, 0, 0, 0.2) 100%
	);
}

.session-player__title {
	font-size: clamp(1.5rem, 3vw, 2.5rem);
	font-weight: 700;
	color: #fff;
	text-align: center;
	margin-bottom: var(--space-md);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.session-player__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
}

.session-player__info {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.75);
}

.session-player__info .material-symbols-rounded {
	font-size: 1.125rem;
}

/* Play button */
.session-player__play {
	width: 5rem;
	height: 5rem;
	border-radius: var(--radius-full);
	border: none;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(0.5rem);
	-webkit-backdrop-filter: blur(0.5rem);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.session-player__play:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: scale(1.1);
}

.session-player__play .material-symbols-rounded {
	font-size: 3rem;
}

/* Video unavailable */
.session-player__unavailable {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
	color: rgba(255, 255, 255, 0.4);
}

.session-player__unavailable .material-symbols-rounded {
	font-size: 3rem;
}

/* Video iframe — 16:9 centred, fills viewport as much as possible */
.session-player__video {
	position: absolute;
	inset: 0;
	z-index: 10;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.session-player__video[hidden] {
	display: none;
}

.session-player__video iframe {
	width: min(100%, 177.78vh);
	height: min(100%, 56.25vw);
	border: none;
}

/* Detail section — below the fold */
.session-detail {
	padding: var(--space-2xl) var(--gutter);
	background: var(--color-bg);
}

.session-detail__inner {
	max-width: 50rem;
	margin: 0 auto;
}

.session-detail__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
}

.session-detail__speakers {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	font-size: 0.9375rem;
}

.session-detail__speakers .material-symbols-rounded {
	font-size: 1.25rem;
	color: var(--color-accent);
}

.session-detail__speakers a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--duration) var(--ease);
}

.session-detail__speakers a:hover {
	color: var(--color-primary-light);
	text-decoration: underline;
}

.session-detail__duration {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

.session-detail__duration .material-symbols-rounded {
	font-size: 1.125rem;
}

.session-detail__specialties {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
}

.session-detail__tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-accent);
	background: rgba(54, 95, 166, 0.2);
	border: 1px solid rgba(54, 95, 166, 0.3);
	border-radius: 9999px;
	text-decoration: none;
	transition: background var(--duration) var(--ease);
}

.session-detail__tag:hover {
	background: rgba(54, 95, 166, 0.35);
}

.session-detail__actions {
	display: flex;
	gap: var(--space-sm);
	margin-bottom: var(--space-xl);
	position: relative;
}

.session-detail__content {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-text-muted);
}

.session-detail__content p {
	margin-bottom: var(--space-md);
}

.session-detail__content a {
	color: var(--color-accent);
}

/* Related row spacing */
.content-row--related {
	padding-bottom: var(--space-2xl);
}

/* ==========================================================================
   14b. Single Speaker Profile
   ========================================================================== */

.site-main--speaker {
	padding-top: 0;
}

/* ── Hero: shared structure ──────────────────────────────── */

.speaker-hero {
	position: relative;
	overflow: hidden;
	margin-top: calc(-1 * var(--header-h));
	padding-top: var(--header-h);
}

/* Banner variant (lecturer) */

.speaker-hero--banner {
	min-height: 50vh;
	display: flex;
	align-items: flex-end;
}

.speaker-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.speaker-hero--banner .speaker-hero__gradient {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, var(--color-bg) 0%, var(--color-bg) 8%, rgba(11, 26, 46, 0.85) 40%, rgba(11, 26, 46, 0.55) 100%),
		linear-gradient(90deg, rgba(11, 26, 46, 0.7) 0%, transparent 70%);
}

.speaker-hero--banner .speaker-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	gap: var(--space-xl);
	padding: var(--space-2xl) var(--gutter) var(--space-xl);
	max-width: var(--max-width);
	margin: 0 auto;
	width: 100%;
}

/* Compact variant (regular speaker) */

.speaker-hero--compact {
	min-height: 30vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-bg) 60%, var(--color-surface) 100%);
}

.speaker-hero--compact .speaker-hero__gradient {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center top, rgba(54, 95, 166, 0.15) 0%, transparent 70%);
}

.speaker-hero--compact .speaker-hero__content--centered {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: var(--space-2xl) var(--gutter);
}

/* ── Profile photo ───────────────────────────────────────── */

.speaker-hero__photo {
	width: 10rem;
	height: 10rem;
	border-radius: var(--radius-full);
	object-fit: cover;
	border: 0.25rem solid var(--color-primary);
	box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);
	flex-shrink: 0;
}

.speaker-hero__photo-placeholder {
	width: 10rem;
	height: 10rem;
	border-radius: var(--radius-full);
	background: var(--color-surface);
	border: 0.25rem solid var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.speaker-hero__photo-placeholder .material-symbols-rounded {
	font-size: 4rem;
	color: var(--color-text-dim);
}

/* ── Hero text ───────────────────────────────────────────── */

.speaker-hero__name {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 var(--space-sm);
	letter-spacing: -0.02em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.speaker-hero--compact .speaker-hero__name {
	margin-top: var(--space-md);
}

.speaker-hero__country {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 var(--space-sm);
}

.speaker-hero__country .material-symbols-rounded {
	font-size: 1.125rem;
	color: var(--color-primary-light);
}

.speaker-hero__specialties {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-bottom: var(--space-sm);
}

.speaker-hero__tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-accent);
	background: rgba(54, 95, 166, 0.2);
	border: 1px solid rgba(54, 95, 166, 0.3);
	border-radius: 9999px;
	text-decoration: none;
	transition: background var(--duration) var(--ease);
}

.speaker-hero__tag:hover {
	background: rgba(54, 95, 166, 0.35);
}

.speaker-hero__count {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	color: var(--color-primary-light);
	font-weight: 600;
	margin: 0;
}

.speaker-hero__count .material-symbols-rounded {
	font-size: 1.125rem;
}

/* ── Bio section ─────────────────────────────────────────── */

.speaker-profile__bio {
	padding: var(--space-2xl) var(--gutter);
	background: var(--color-bg);
}

.speaker-profile__bio-inner {
	max-width: 50rem;
	margin: 0 auto;
}

.speaker-profile__section-title {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: var(--space-lg);
}

.speaker-profile__section-title .material-symbols-rounded {
	font-size: 1.375rem;
	color: var(--color-primary-light);
}

.speaker-profile__bio-text {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-text-muted);
}

.speaker-profile__bio-text p {
	margin-bottom: var(--space-md);
}

.speaker-profile__bio-text a {
	color: var(--color-accent);
}

/* ── Sessions & related speakers rows ────────────────────── */

.content-row--speaker-sessions {
	padding-top: var(--space-lg);
}

.content-row--related-speakers {
	padding-bottom: var(--space-2xl);
}

/* ── Responsive ──────────────────────────────────────────── */

@media screen and (max-width: 48rem) {
	.speaker-hero--banner {
		min-height: 40vh;
	}

	.speaker-hero--banner .speaker-hero__content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.speaker-hero__photo {
		width: 7rem;
		height: 7rem;
	}

	.speaker-hero__photo-placeholder {
		width: 7rem;
		height: 7rem;
	}

	.speaker-hero__photo-placeholder .material-symbols-rounded {
		font-size: 3rem;
	}

	.speaker-hero--compact {
		min-height: 25vh;
	}

	.speaker-hero__specialties {
		justify-content: center;
	}

	.speaker-profile__bio {
		padding: var(--space-xl) var(--gutter);
	}
}

/* ── Congress cards (Meetings page) ────────────────────────── */
.congress-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--space-xl) var(--gutter) var(--space-2xl);
}

@media (min-width: 48rem) {
	.congress-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.congress-card {
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-surface);
	transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.congress-card:hover {
	transform: scale(1.03);
	box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.4);
	z-index: 2;
}

.congress-card__banner {
	position: relative;
	aspect-ratio: 5 / 1;
	overflow: hidden;
	background: var(--color-surface-hover);
}

.congress-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
	display: block;
	transition: transform 0.4s var(--ease);
}

.congress-card:hover .congress-card__img {
	transform: scale(1.08);
}

.congress-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-surface) 100%);
}

.congress-card__placeholder .material-symbols-rounded {
	font-size: 3rem;
	color: var(--color-text-dim);
}

.congress-card__body {
	padding: var(--space-sm) var(--space-md) var(--space-sm);
}

.congress-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.congress-card__title {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: var(--space-xs);
}

.congress-card__subtitle {
	font-size: 0.75rem;
	color: var(--color-text-muted);
	margin: 0 0 var(--space-xs);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.congress-card__meta {
	display: flex;
	gap: var(--space-sm);
	font-size: 0.7rem;
	color: var(--color-text-dim);
	align-items: center;
	flex-wrap: wrap;
}

.congress-card__meta .material-symbols-rounded {
	font-size: 0.85rem;
	vertical-align: -2px;
	margin-right: 2px;
}

.congress-card__sessions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--color-primary);
	color: #fff;
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.congress-card__coming-soon {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-text-dim);
}

.congress-card--no-sessions:hover {
	transform: none;
	box-shadow: none;
}

/* ── Congress hero (single congress page) ──────────────────── */
.congress-hero {
	position: relative;
	min-height: 40vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	margin-top: calc(-1 * var(--header-h, 0px));
	padding-top: var(--header-h, 0px);
}

.congress-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
}

.congress-hero__gradient {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(0deg, var(--color-bg) 0%, rgba(5,12,24,0.85) 50%, rgba(5,12,24,0.5) 100%);
}

.congress-hero__content {
	position: relative;
	z-index: 2;
	padding: var(--space-2xl) var(--gutter) var(--space-lg);
	max-width: 48rem;
}

.congress-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 var(--space-xs);
	letter-spacing: -0.02em;
	text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.congress-hero__subtitle {
	font-size: 1rem;
	color: rgba(255,255,255,0.85);
	margin: 0 0 var(--space-sm);
	line-height: 1.4;
	text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.congress-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	font-size: 0.875rem;
	color: rgba(255,255,255,0.7);
}

.congress-hero__meta .material-symbols-rounded {
	font-size: 1.1rem;
	vertical-align: -3px;
	margin-right: 4px;
	color: var(--color-primary-light);
}

/* ── The Association page ──────────────────────────────────── */
.assoc-content {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--space-lg) var(--gutter) var(--space-2xl);
}

/* Featured officials — two big cards side by side */
.assoc-featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-lg);
	margin-bottom: var(--space-2xl);
}

.assoc-featured__card {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.assoc-featured__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.assoc-featured__video {
	position: relative;
}

.assoc-featured__info {
	padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.assoc-featured__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-primary-light);
	margin-bottom: var(--space-xs);
}

.assoc-featured__label .material-symbols-rounded {
	font-size: 0.9rem;
}

.assoc-featured__name {
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 var(--space-xs);
	line-height: 1.3;
}

.assoc-featured__country {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	color: var(--color-text-muted);
}

.assoc-featured__country .material-symbols-rounded {
	font-size: 0.9rem;
}

/* Section blocks — historical + other */
.assoc-section {
	margin-bottom: var(--space-2xl);
}

.assoc-section__header {
	display: flex;
	align-items: baseline;
	gap: var(--space-lg);
	margin-bottom: var(--space-md);
}

.assoc-section__title {
	font-size: clamp(1rem, 2.5vw, 1.35rem);
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.assoc-section__person {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	color: var(--color-text-muted);
}

.assoc-section__person .material-symbols-rounded {
	font-size: 1rem;
	color: var(--color-primary-light);
}

/* Video embed — shared */
.assoc-video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-surface-hover);
}

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

.assoc-video__player {
	object-fit: contain;
	background: #000;
}

/* Inside the featured card, video has no radius (card handles it) */
.assoc-featured__video .assoc-video {
	border-radius: 0;
}

/* Video grid */
.assoc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

.assoc-grid__item {
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.assoc-grid__item:hover {
	transform: scale(1.03);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	z-index: 2;
}

/* Responsive */
@media (max-width: 48rem) {
	.assoc-featured {
		grid-template-columns: 1fr;
	}
	.assoc-grid {
		grid-template-columns: 1fr 1fr;
	}
	.assoc-section__header {
		flex-direction: column;
		gap: var(--space-xs);
	}
}

@media (max-width: 30rem) {
	.assoc-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Industry Corner disclaimer ───────────────────────────── */
.industry-disclaimer {
	display: flex;
	align-items: flex-start;
	gap: var(--space-sm);
	max-width: var(--max-width);
	margin: 0 auto var(--space-lg);
	padding-left: var(--gutter);
	padding-right: var(--gutter);
	padding: var(--space-md) var(--space-lg);
	background: var(--color-surface);
	border-radius: var(--radius-md);
	border-left: 3px solid var(--color-primary-light);
}

.industry-disclaimer .material-symbols-rounded {
	font-size: 1.25rem;
	color: var(--color-primary-light);
	flex-shrink: 0;
	margin-top: 1px;
}

.industry-disclaimer p {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	line-height: 1.5;
}

/* ── The Pulse (newsletters) ─────────────────────────────── */

.pulse-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: var(--space-lg);
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--space-xl) var(--gutter) var(--space-2xl);
}

.pulse-card {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform var(--duration) var(--ease),
	            box-shadow var(--duration) var(--ease);
}

.pulse-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.pulse-card__cover {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--color-bg);
}

.pulse-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pulse-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-surface-hover);
}

.pulse-card__placeholder .material-symbols-rounded {
	font-size: 3rem;
	color: var(--color-text-dim);
}

.pulse-card__body {
	padding: var(--space-md);
}

.pulse-card__title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-text);
	margin: 0 0 var(--space-xs);
	line-height: 1.3;
}

.pulse-card__date {
	display: flex;
	align-items: center;
	gap: 0.3em;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin: 0 0 var(--space-sm);
}

.pulse-card__date .material-symbols-rounded {
	font-size: 1rem;
	color: var(--color-text-dim);
}

.pulse-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.45rem 0.9rem;
	background: var(--color-primary);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	border-radius: var(--radius-sm);
	text-decoration: none;
	transition: background var(--duration) var(--ease);
}

.pulse-card__btn:hover {
	background: var(--color-primary-light);
}

.pulse-card__btn .material-symbols-rounded {
	font-size: 1.125rem;
}

@media (max-width: 48rem) {
	.pulse-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-md);
	}
}

@media (max-width: 30rem) {
	.pulse-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ── Scroll reveal ───────────────────────────────────────── */

html.has-reveal .page-banner,
html.has-reveal .content-row,
html.has-reveal .congress-card,
html.has-reveal .congress-hero__content,
html.has-reveal .speaker-hero__content,
html.has-reveal .speaker-profile__bio,
html.has-reveal .submit-hero__content,
html.has-reveal .submit-requirements,
html.has-reveal .submit-cta,
html.has-reveal .error-404__content,
html.has-reveal .assoc-featured__card,
html.has-reveal .assoc-section,
html.has-reveal .pulse-card,
html.has-reveal .info-boxes,
html.has-reveal .banner,
html.has-reveal .industry-disclaimer {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

html.has-reveal .page-banner.is-visible,
html.has-reveal .content-row.is-visible,
html.has-reveal .congress-card.is-visible,
html.has-reveal .congress-hero__content.is-visible,
html.has-reveal .speaker-hero__content.is-visible,
html.has-reveal .speaker-profile__bio.is-visible,
html.has-reveal .submit-hero__content.is-visible,
html.has-reveal .submit-requirements.is-visible,
html.has-reveal .submit-cta.is-visible,
html.has-reveal .error-404__content.is-visible,
html.has-reveal .assoc-featured__card.is-visible,
html.has-reveal .assoc-section.is-visible,
html.has-reveal .pulse-card.is-visible,
html.has-reveal .info-boxes.is-visible,
html.has-reveal .banner.is-visible,
html.has-reveal .industry-disclaimer.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html.has-reveal [class] {
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* View Transitions */
@view-transition {
	navigation: auto;
}

/* ==========================================================================
   15. Utilities
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: 0 0 0.125rem 0.125rem rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--color-accent);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 0.3125rem;
	line-height: normal;
	padding: 1rem 1.5rem;
	text-decoration: none;
	top: 0.3125rem;
	width: auto;
	z-index: 100000;
}

.alignleft {
	float: left;
	margin-right: var(--space-lg);
	margin-bottom: var(--space-lg);
}

.alignright {
	float: right;
	margin-left: var(--space-lg);
	margin-bottom: var(--space-lg);
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: var(--space-lg);
}

/* ==========================================================================
   16. User Dropdown
   ========================================================================== */

.user-dropdown {
	position: relative;
}

.user-dropdown__trigger {
	position: relative;
	z-index: 2;
}

.user-dropdown__menu {
	display: none;
	position: absolute;
	top: calc(100% + 0.5rem);
	right: -0.5rem;
	min-width: 14rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.6);
	padding: var(--space-xs) 0;
	z-index: 200;
	animation: dropdownIn 0.15s ease-out;
}

/* Invisible bridge that keeps hover active between trigger and menu */
.user-dropdown__menu::before {
	content: '';
	position: absolute;
	top: -1rem;
	right: 0;
	width: calc(100% + 1rem);
	height: 1rem;
}

@keyframes dropdownIn {
	from { opacity: 0; transform: translateY(-0.25rem); }
	to   { opacity: 1; transform: translateY(0); }
}

.user-dropdown:hover .user-dropdown__menu,
.user-dropdown:focus-within .user-dropdown__menu {
	display: block;
}

.user-dropdown__header {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
}

.user-dropdown__avatar {
	font-size: 2rem;
	color: var(--color-primary-light);
	flex-shrink: 0;
}

.user-dropdown__avatar-img {
	width: 2rem;
	height: 2rem;
	border-radius: var(--radius-full);
	object-fit: cover;
	flex-shrink: 0;
}

.user-dropdown__name {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 10rem;
}

.user-dropdown__email {
	display: block;
	font-size: 0.75rem;
	color: var(--color-text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 10rem;
}

.user-dropdown__divider {
	height: 1px;
	background: var(--color-border);
	margin: var(--space-xs) 0;
}

.user-dropdown__item {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-sm) var(--space-md);
	font-size: 0.85rem;
	color: var(--color-text-muted);
	text-decoration: none;
	transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.user-dropdown__item:hover {
	color: var(--color-text);
	background: rgba(255, 255, 255, 0.06);
}

.user-dropdown__item .material-symbols-rounded {
	font-size: 1.15rem;
	flex-shrink: 0;
}

.user-dropdown__item--logout {
	color: var(--color-like);
}

.user-dropdown__item--logout:hover {
	background: rgba(231, 76, 60, 0.08);
	color: var(--color-like);
}

/* ==========================================================================
   17. My List Pages (Watchlist / Likes)
   ========================================================================== */

.mylist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: var(--space-lg);
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--space-xl) var(--gutter) var(--space-2xl);
}

.mylist-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--space-2xl) var(--gutter);
	min-height: 40vh;
}

.mylist-empty__icon {
	font-size: 4rem;
	color: var(--color-text-dim);
	margin-bottom: var(--space-md);
}

.mylist-empty__text {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--color-text);
	margin: 0 0 var(--space-xs);
}

.mylist-empty__sub {
	font-size: 0.9rem;
	color: var(--color-text-muted);
	margin: 0 0 var(--space-lg);
	max-width: 28rem;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

/* Tablet: hamburger menu */
@media screen and (max-width: 64rem) {
	.header__hamburger {
		display: flex;
	}

	.header__brand,
	.header__actions {
		position: relative;
		z-index: 3;
	}

	.header__nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		bottom: 0;
		background: var(--color-bg);
		padding-top: var(--header-h);
		display: flex;
		flex-direction: column;
		justify-content: center;
		clip-path: inset(0 0 100% 0);
		opacity: 0;
		pointer-events: none;
		transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		            opacity 0.3s ease;
		z-index: 1;
	}

	.admin-bar .header__nav {
		top: 32px;
	}

	.header__nav.nav--open {
		clip-path: inset(0 0 0 0);
		opacity: 1;
		pointer-events: auto;
	}

	/* Stagger items on open */
	.header__menu > li {
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.25s ease, transform 0.25s ease;
	}

	.header__nav.nav--open .header__menu > li {
		opacity: 1;
		transform: translateY(0);
	}

	.header__nav.nav--open .header__menu > li:nth-child(1) { transition-delay: 0.05s; }
	.header__nav.nav--open .header__menu > li:nth-child(2) { transition-delay: 0.1s; }
	.header__nav.nav--open .header__menu > li:nth-child(3) { transition-delay: 0.15s; }
	.header__nav.nav--open .header__menu > li:nth-child(4) { transition-delay: 0.2s; }
	.header__nav.nav--open .header__menu > li:nth-child(5) { transition-delay: 0.25s; }
	.header__nav.nav--open .header__menu > li:nth-child(6) { transition-delay: 0.3s; }
	.header__nav.nav--open .header__menu > li:nth-child(7) { transition-delay: 0.35s; }

	.header__menu {
		flex-direction: column;
		align-items: center;
		gap: 0;
	}

	.header__menu > li > a {
		padding: var(--space-md) var(--gutter);
		font-size: 1.1rem;
		border-radius: 0;
		text-align: center;
	}

	.header__menu > li > a::after {
		bottom: 4px;
	}

	.header__submenu {
		position: static;
		background: rgba(0, 0, 0, 0.2);
		border: none;
		border-radius: 0;
		padding: 0;
		box-shadow: none;
		backdrop-filter: none;
	}

	.header__submenu a {
		padding: var(--space-md) var(--gutter);
		text-align: center;
		font-size: 1rem;
	}
}

@media screen and (max-width: 48rem) {
	:root {
		--header-h: 3.5rem;
	}

	/* Mobile header — smaller buttons */
	.header__submit {
		font-size: 0;
		padding: 0.4rem;
		gap: 0;
	}
	.header__submit .material-symbols-rounded {
		font-size: 1.25rem;
	}

	.header-search__toggle {
		width: 2rem;
		height: 2rem;
	}
	.header-search__toggle .material-symbols-rounded {
		font-size: 1.25rem;
	}
	.header-search.is-open .header-search__form {
		width: min(16rem, 45vw);
	}

	/* Slider arrows on mobile — always visible */
	.slider-arrow {
		opacity: 1;
		width: 2.25rem;
	}

	.slider-arrow--hidden {
		opacity: 0 !important;
	}

	/* Hero */
	.hero {
		height: 55vh;
	}

	.hero__title {
		font-size: 1.75rem;
	}

	.hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		gap: var(--space-sm);
		align-items: center;
	}

	.hero__social {
		margin-left: 0;
	}

	.btn {
		width: auto;
		padding: 0.5rem 1rem;
		font-size: 0.8125rem;
	}

	.hero__arrow {
		display: none;
	}

	.hero__indicators {
		bottom: 1.5rem;
	}

	/* Cards */
	.session-card {
		width: 72vw;
	}

	.speaker-card {
		width: 7rem;
	}

	.speaker-card__photo {
		width: 4.5rem;
		height: 4.5rem;
	}

	/* Lecture cards */
	.lecture-card {
		width: 72vw;
	}

	/* Info boxes — compact 3-col on mobile */
	.info-boxes {
		padding: var(--space-lg) var(--gutter);
	}

	.info-boxes__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--space-sm);
	}

	.info-box {
		padding: var(--space-md) var(--space-sm);
		align-items: center;
		text-align: center;
		border-radius: var(--radius-md);
	}

	.info-box__icon {
		font-size: 1.5rem;
		margin-bottom: var(--space-xs);
	}

	.info-box__title {
		font-size: 0.75rem;
		margin-bottom: 0;
	}

	.info-box__desc {
		display: none;
	}

	.info-box__btn {
		font-size: 0.6875rem;
		margin-top: var(--space-xs);
		gap: 0.125rem;
	}

	.info-box__btn .material-symbols-rounded {
		font-size: 0.875rem;
	}

	/* Footer */
	.footer__top {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-md);
	}

	.footer__nav ul {
		flex-wrap: wrap;
		gap: var(--space-sm) var(--space-lg);
	}

	/* Share popup */
	.share-popup {
		right: auto;
		left: 0;
	}

	/* Single session */
	.session-player__title {
		font-size: 1.25rem;
	}

	.session-player__meta {
		gap: var(--space-sm);
	}

	.session-player__info {
		font-size: 0.8125rem;
	}

	.session-player__play {
		width: 4rem;
		height: 4rem;
	}

	.session-player__play .material-symbols-rounded {
		font-size: 2.5rem;
	}

	.session-detail {
		padding: var(--space-xl) var(--gutter);
	}

	.session-detail__meta {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media screen and (max-width: 30rem) {
	.session-card {
		width: 85vw;
	}
}
