/* ================================================================
   main.css — Plex-style portfolio layout
   ================================================================ */

/* ---- Fonts ---- */
@font-face {
	font-family: 'Roboto';
	src: url('../Roboto-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Material Symbols Outlined';
	src: url('../material.symbols.outlined.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: block;
}

.material-icons-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: 'liga';
}

/* ---- Custom Properties ---- */
:root {
	--bg-primary: #1f1f1f;
	--bg-surface: #202629;
	--bg-hover: #3f4245;
	--text-primary: #ffffff;
	--text-secondary: #ffffffcc;
	--text-muted: #ffffff99;
	--accent: #e5a00d;
	--accent-hover: #c98a0b;
	--accent-glow: rgba(229, 160, 13, 0.25);
	--danger: #f93706;
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--transition: 0.3s ease;
	--transition-slow: 0.6s ease;
	--header-height: 56px;
	--sidebar-width: 60px;
	--page-padding: 40px;
	--btn-dark: #1f1f1f;
	--btn-icon-border: rgba(255, 255, 255, 0.15);
	--btn-icon-border-hover: rgba(255, 255, 255, 0.3);
	--btn-icon-hover-bg: rgba(255, 255, 255, 0.06);
	--backdrop-base: 0, 0, 0;
	--placeholder-app: linear-gradient(135deg, #2a3a4a, #1a2a3a);
	--placeholder-agent: linear-gradient(135deg, #3a3020, #2a2010);
	--placeholder-doc: linear-gradient(135deg, #2a2a3a, #1a1a2a);
	--placeholder-movie: linear-gradient(135deg, #3a2a2a, #2a1a1a);
	--placeholder-video: linear-gradient(135deg, #1a1a2a, #0a0a1a);
	--movie-overlay: rgba(0, 0, 0, 0.3);
	--movie-play-color: rgba(255, 255, 255, 0.7);
}

/* ---- Light theme ---- */
[data-theme="light"] {
	--bg-primary: #c8ccd0;
	--bg-surface: #d4d7db;
	--bg-hover: #bcc0c5;
	--text-primary: #0a0a0a;
	--text-secondary: #1a1c22;
	--text-muted: #3a3c42;
	--accent: #d4920c;
	--accent-hover: #b87a0a;
	--accent-glow: rgba(212, 146, 12, 0.2);
	--btn-dark: #1a1c22;
	--btn-icon-border: rgba(0, 0, 0, 0.15);
	--btn-icon-border-hover: rgba(0, 0, 0, 0.3);
	--btn-icon-hover-bg: rgba(0, 0, 0, 0.05);
	--backdrop-base: 200, 204, 208;
	--placeholder-app: linear-gradient(135deg, #c8d4e0, #dce4ee);
	--placeholder-agent: linear-gradient(135deg, #e8dcc8, #f2eadc);
	--placeholder-doc: linear-gradient(135deg, #d0d0e4, #e0e0f0);
	--placeholder-movie: linear-gradient(135deg, #e4d0d0, #f0e0e0);
	--placeholder-video: linear-gradient(135deg, #d4d4e4, #e4e4f0);
	--movie-overlay: rgba(0, 0, 0, 0.15);
	--movie-play-color: rgba(0, 0, 0, 0.5);
}

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

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: 'Roboto', system-ui, -apple-system, sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.5;
	overflow-x: hidden;
	min-height: 100vh;
}

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

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

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

ul {
	list-style: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--bg-hover);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--text-muted);
}

/* ================================================================
   BACKDROP
   ================================================================ */
.backdrop {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}

.backdrop__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3) saturate(1.2);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.backdrop__image--active {
	opacity: 1;
}

.backdrop__gradient {
	position: absolute;
	inset: 0;
	background: rgba(var(--backdrop-base), 0.45);
}

/* ================================================================
   PAGE CONTAINER
   ================================================================ */
.page {
	position: relative;
	z-index: 1;
	padding: 0 var(--page-padding);
	margin-left: var(--sidebar-width);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	margin-top: 10px;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--sidebar-width);
	height: 100vh;
	z-index: 10;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	background: var(--bg-surface);
	border-right: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

[data-theme="light"] .sidebar {
	border-right-color: rgba(0, 0, 0, 0.08);
}

.sidebar__top,
.sidebar__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.sidebar__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-md);
	color: var(--text-muted);
	transition: color var(--transition), background var(--transition);
}

.sidebar__item:hover {
	color: var(--text-primary);
	background: var(--bg-hover);
}

.sidebar__item--active {
	color: var(--accent);
	background: rgba(229, 160, 13, 0.1);
}

[data-theme="light"] .sidebar__item--active {
	background: rgba(212, 146, 12, 0.1);
}

.sidebar__item .material-icons-outlined {
	font-size: 22px;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9;
	background: rgba(0, 0, 0, 0.5);
}

.sidebar-overlay.active {
	display: block;
}

/* Hamburger (mobile only) */
.hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	transition: color var(--transition), background var(--transition);
}

.hamburger:hover {
	color: var(--text-primary);
	background: var(--bg-hover);
}

.hamburger .material-icons-outlined {
	font-size: 24px;
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	padding: 8px 0;
	flex-shrink: 0;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo-icon {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	background: linear-gradient(135deg, var(--accent), #c98a0b);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	color: var(--btn-dark);
}

.logo-text {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.logo-text span {
	color: var(--accent);
}

/* ================================================================
   DETAIL HERO
   ================================================================ */
.detail {
	display: flex;
	gap: 32px;
	padding: 24px 0 32px;
	min-height: 400px;
	align-items: flex-start;
}

.detail__poster {
	flex-shrink: 0;
	width: 493px;
	height: 253px;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--bg-surface);
	position: relative;
}

/* Portrait poster for documents only */
.detail__poster--portrait {
	width: 250px;
	height: 375px;
}

.detail__poster img,
.detail__poster video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* CSS placeholder when no image is available */
.detail__poster .placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 42px;
	font-weight: 700;
	color: var(--text-muted);
	background: linear-gradient(135deg, var(--bg-surface), var(--bg-hover));
	text-transform: uppercase;
	letter-spacing: 2px;
}

.detail__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Badges */
.detail__badges {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.detail__badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent);
    color: var(--btn-dark);
}

.detail__badge[data-status="live"] {
	background: #10b981;
}

.detail__badge[data-status="agent"] {
	background: #f59e0b;
	color: var(--btn-dark);
}

.detail__badge[data-status="video"] {
	background: #6366f1;
	color: #fff;
}

.detail__badge[data-status="document"] {
	background: #3b82f6;
	color: #fff;
}

.detail__category {
	font-size: 13px;
	color: var(--text-secondary);
}

/* Title */
.detail__title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-primary);
}

.detail__subtitle {
	font-size: 15px;
	color: var(--text-secondary);
	line-height: 1.4;
}

/* Meta tags */
.detail__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 4px 0;
}

.detail__meta .tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--radius-sm);
	font-size: 12px;
	border: 1px solid var(--tag-border, rgba(255, 255, 255, 0.06));
	background: var(--tag-bg, rgba(255, 255, 255, 0.08));
	color: var(--tag-color, var(--text-secondary));
}

.detail__meta .tag[data-color="blue"]   { --tag-bg: rgba(59,130,246,0.15); --tag-border: rgba(59,130,246,0.30); --tag-color: #93c5fd; }
.detail__meta .tag[data-color="green"]  { --tag-bg: rgba(16,185,129,0.15); --tag-border: rgba(16,185,129,0.30); --tag-color: #6ee7b7; }
.detail__meta .tag[data-color="amber"]  { --tag-bg: rgba(245,158,11,0.15); --tag-border: rgba(245,158,11,0.30); --tag-color: #fcd34d; }
.detail__meta .tag[data-color="purple"] { --tag-bg: rgba(139,92,246,0.15); --tag-border: rgba(139,92,246,0.30); --tag-color: #c4b5fd; }
.detail__meta .tag[data-color="rose"]   { --tag-bg: rgba(244,63,94,0.15);  --tag-border: rgba(244,63,94,0.30);  --tag-color: #fda4af; }
.detail__meta .tag[data-color="cyan"]   { --tag-bg: rgba(6,182,212,0.15);  --tag-border: rgba(6,182,212,0.30);  --tag-color: #67e8f9; }
.detail__meta .tag[data-color="orange"] { --tag-bg: rgba(249,115,22,0.15); --tag-border: rgba(249,115,22,0.30); --tag-color: #fdba74; }
.detail__meta .tag[data-color="teal"]   { --tag-bg: rgba(20,184,166,0.15); --tag-border: rgba(20,184,166,0.30); --tag-color: #5eead4; }

[data-theme="light"] .detail__meta .tag               { --tag-bg: rgba(0,0,0,0.04);      --tag-border: rgba(0,0,0,0.1);     --tag-color: var(--text-secondary); }
[data-theme="light"] .detail__meta .tag[data-color="blue"]   { --tag-bg: rgba(59,130,246,0.1);  --tag-border: rgba(59,130,246,0.3);  --tag-color: #2563eb; }
[data-theme="light"] .detail__meta .tag[data-color="green"]  { --tag-bg: rgba(16,185,129,0.1);  --tag-border: rgba(16,185,129,0.3);  --tag-color: #059669; }
[data-theme="light"] .detail__meta .tag[data-color="amber"]  { --tag-bg: rgba(245,158,11,0.1);  --tag-border: rgba(245,158,11,0.3);  --tag-color: #b45309; }
[data-theme="light"] .detail__meta .tag[data-color="purple"] { --tag-bg: rgba(139,92,246,0.1);  --tag-border: rgba(139,92,246,0.3);  --tag-color: #7c3aed; }
[data-theme="light"] .detail__meta .tag[data-color="rose"]   { --tag-bg: rgba(244,63,94,0.1);   --tag-border: rgba(244,63,94,0.3);   --tag-color: #e11d48; }
[data-theme="light"] .detail__meta .tag[data-color="cyan"]   { --tag-bg: rgba(6,182,212,0.1);   --tag-border: rgba(6,182,212,0.3);   --tag-color: #0891b2; }
[data-theme="light"] .detail__meta .tag[data-color="orange"] { --tag-bg: rgba(249,115,22,0.1);  --tag-border: rgba(249,115,22,0.3);  --tag-color: #c2410c; }
[data-theme="light"] .detail__meta .tag[data-color="teal"]   { --tag-bg: rgba(20,184,166,0.1);  --tag-border: rgba(20,184,166,0.3);  --tag-color: #0d9488; }

/* Light theme backdrop adjustments */
[data-theme="light"] .backdrop__image {
	filter: brightness(0.7) saturate(1.1);
}

/* Actions */
.detail__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 6px 0;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: var(--btn-dark);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: background var(--transition), box-shadow var(--transition);
	cursor: pointer;
}

.btn-primary:hover {
	background: var(--accent-hover);
	box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary .material-icons-outlined {
	font-size: 20px;
}

.btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--btn-icon-border);
	color: var(--text-secondary);
	transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.btn-icon:hover {
	color: var(--text-primary);
	border-color: var(--btn-icon-border-hover);
	background: var(--btn-icon-hover-bg);
}

.btn-icon .material-icons-outlined {
	font-size: 20px;
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	border-radius: var(--radius-sm);
	border: none;
	background: #69db75;
	color: #1a1c22;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: background var(--transition), box-shadow var(--transition);
	cursor: pointer;
}

.btn-secondary:hover {
	background: #85e38f;
	box-shadow: 0 0 20px rgba(105, 219, 117, 0.25);
}

/* Description */
.detail__description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-height: var(--collapsed-height, 5em);
    overflow: hidden;
    transition: max-height var(--transition);
}

.detail__description.expanded {
	max-height: 1000px;
}

.detail__description h2 {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary);
	margin: 12px 0 6px;
}

.detail__description ul {
	margin: 4px 0 4px 20px;
	list-style: disc;
}

.detail__description li {
	margin-bottom: 2px;
}

.detail__description p {
	margin-bottom: 8px;
}

.detail__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--accent);
	font-size: 13px;
	font-weight: 500;
	align-self: flex-start;
	transition: color var(--transition);
}

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

.detail__more .material-icons-outlined {
	font-size: 18px;
	transition: transform var(--transition);
}

.detail__more.expanded .material-icons-outlined {
	transform: rotate(180deg);
}

/* Hide elements contextually */
.hidden {
	display: none !important;
}

/* ================================================================
   GALLERIES
   ================================================================ */
.gallery {
	margin-bottom: 28px;
}

body.category-view {
	background: var(--bg-surface);
}

.page--category .gallery {
	margin-top: 50px;
}

/* Category view: wrap cards into a grid, hide arrows */
.page--category .gallery__arrows {
	display: none;
}

.page--category .gallery__track {
	flex-wrap: wrap;
	overflow-x: visible;
	scroll-snap-type: none;
}

.page--category .gallery__card {
	flex-shrink: 1;
	scroll-snap-align: none;
}

.gallery__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-left: 6px;
}

.gallery__header h2 {
	font-size: 18px;
	font-weight: 600;
	color: var(--text-primary);
}

.gallery__arrows {
	display: flex;
	align-items: center;
	gap: 4px;
}

.gallery__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--text-secondary);
	transition: color var(--transition), background var(--transition), opacity var(--transition);
}

.gallery__arrow.hidden {
	opacity: 0;
	pointer-events: none;
}

.gallery__arrow:hover {
	color: var(--text-primary);
	background: var(--bg-hover);
}

/* Track: horizontal scroll */
.gallery__track {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	-webkit-overflow-scrolling: touch;
}

/* Hide scrollbar on gallery tracks */
.gallery__track::-webkit-scrollbar {
	height: 0;
}

.gallery__track {
	scrollbar-width: none;
}

/* ---- Card (shared) ---- */
.gallery__card {
	flex-shrink: 0;
	scroll-snap-align: start;
	cursor: pointer;
	transition: transform var(--transition);
	position: relative;
	padding: 10px 6px 0 6px;
}

.gallery__card:hover {
	transform: translateY(-4px);
}

.gallery__card--active .gallery__card-thumb {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

.gallery__card-thumb {
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--bg-surface);
	position: relative;
}

/* CSS placeholder for missing thumbnails */
.gallery__card-thumb .placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.gallery__card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gallery__card-label {
	margin-top: 10px;
	margin-left: 5px;
	font-size: 13px;
	color: var(--text-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gallery__card-sublabel {
	font-size: 11px;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-left: 5px;
}

/* App cards */
.gallery__card--app .gallery__card-thumb {
	width: 200px;
	height: 103px;
}

.gallery__card--app .gallery__card-thumb .placeholder {
	font-size: 20px;
	background: var(--placeholder-app);
}

.gallery__card--app {
	width: 200px;
}

/* Agent cards */
.gallery__card--agent .gallery__card-thumb {
	width: 200px;
	height: 103px;
}

.gallery__card--agent .gallery__card-thumb .placeholder {
	font-size: 20px;
	background: var(--placeholder-agent);
}

.gallery__card--agent {
	width: 200px;
}

/* Document cards */
.gallery__card--doc .gallery__card-thumb {
	width: 120px;
	height: 170px;
}

.gallery__card--doc .gallery__card-thumb .placeholder {
	font-size: 11px;
	padding: 8px;
	text-align: center;
	line-height: 1.3;
	background: var(--placeholder-doc);
	flex-direction: column;
	gap: 4px;
}

.gallery__card--doc .gallery__card-thumb .placeholder .placeholder__icon {
	font-size: 32px;
	margin-bottom: 4px;
	color: var(--text-muted);
	opacity: 0.5;
}

.gallery__card--doc {
	width: 120px;
}

/* Movie cards */
.gallery__card--movie .gallery__card-thumb {
	width: 200px;
	height: 103px;
}

.gallery__card--movie .gallery__card-thumb .placeholder {
	font-size: 16px;
	background: var(--placeholder-movie);
}


.gallery__card--movie {
	width: 200px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
	margin-top: auto;
	padding: 32px 0 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--text-muted);
}

.footer__links {
	display: flex;
	align-items: center;
	gap: 16px;
}

.footer__links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--text-secondary);
	transition: color var(--transition), background var(--transition);
}

.footer__links a:hover {
	color: var(--text-primary);
	background: var(--bg-hover);
}

.footer p a {
	color: var(--text-secondary);
	transition: color var(--transition);
}

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

/* ================================================================
   VIDEO PREVIEW (detail poster hover-to-play)
   ================================================================ */
.detail__poster video {
	background: #000;
}

.detail__poster .video-preview {
	position: relative;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.detail__poster .video-preview img,
.detail__poster .video-preview video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}

.detail__poster .video-preview video {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.detail__poster .video-preview.playing video {
	opacity: 1;
}

.detail__poster .video-preview__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	pointer-events: none;
}

.detail__poster .video-preview__play .material-icons-outlined {
	font-size: 56px;
	color: rgba(255, 255, 255, 0.85);
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.detail__poster .video-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--placeholder-video);
	color: var(--text-muted);
	font-size: 13px;
}

.detail__poster .video-placeholder .material-icons-outlined {
	font-size: 48px;
	opacity: 0.4;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
	:root {
		--page-padding: 24px;
	}

	.detail {
		flex-direction: column;
		align-items: center;
		text-align: center;
		height: auto;
		gap: 20px;
	}

	.detail__poster {
		width: 380px;
		height: 195px;
	}

	.detail__poster--portrait {
		width: 200px;
		height: 300px;
	}

	.detail__info {
		align-items: center;
	}

	.detail__badges {
		justify-content: center;
	}

	.detail__meta {
		justify-content: center;
	}

	.detail__actions {
		justify-content: center;
	}

	.detail__description {
		text-align: left;
	}

	.detail__more {
		align-self: center;
	}

	.detail__title {
		font-size: 26px;
	}
}

@media (max-width: 600px) {
	:root {
		--page-padding: 16px;
		--sidebar-width: 0px;
	}

	.sidebar {
		transform: translateX(-100%);
		width: 60px;
		transition: transform var(--transition);
	}

	.sidebar.open {
		transform: translateX(0);
	}

	.page {
		margin-left: 0;
	}

	.hamburger {
		display: flex;
	}

	.header {
		height: 48px;
	}

	.logo-text {
		font-size: 17px;
	}

	.detail__title {
		font-size: 22px;
	}

	.detail__poster {
		width: 300px;
		height: 154px;
	}

	.detail__poster--portrait {
		width: 165px;
		height: 248px;
	}

	.btn-primary,
	.btn-secondary {
		padding: 8px 18px;
		font-size: 13px;
	}

	.gallery__header h2 {
		font-size: 16px;
	}

	/* Slightly smaller cards on mobile */
	.gallery__card--app .gallery__card-thumb {
		width: 130px;
		height: 82px;
	}
	.gallery__card--app {
		width: 130px;
	}

	.gallery__card--doc .gallery__card-thumb {
		width: 100px;
		height: 140px;
	}
	.gallery__card--doc {
		width: 100px;
	}

	.gallery__card--movie .gallery__card-thumb {
		width: 160px;
		height: 90px;
	}
	.gallery__card--movie {
		width: 160px;
	}
}
