/* Pick - доповнення до дизайну (основний дизайн - у design.css). */

/* Реальне фото в аватарі картки */
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Порожній рейтинг */
.pick-empty { color: var(--text-muted); font-style: italic; text-align: center; padding: var(--space-8) 0; }

/* Обгортка сторінки */
.pick-main { display: block; }
.breadcrumb { padding-top: var(--space-3); }
/* Хлібні крихти (Головна › Колекція › Категорія › Рейтинг) - у стилі сайту */
.pick-crumbs { padding-top: var(--space-3); margin-bottom: var(--space-2); }
.pick-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding: 0; font-size: var(--text-sm); }
.pick-crumbs li { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); }
.pick-crumbs li:not(:first-child)::before { content: "›"; color: var(--text-faint); }
.pick-crumbs a { color: var(--text-muted); text-decoration: none; transition: color .15s ease; }
.pick-crumbs a:hover { color: var(--accent); }
.pick-crumbs .is-current { color: var(--text-strong); font-weight: var(--fw-semibold); }

/* Сторінка «Правила голосування» (.pick-rules) - один блок тексту, зображення float у правому верхньому куті */
.pick-rules::after { content: ''; display: block; clear: both; }
.pick-rules-fig { float: left; width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); margin: 4px var(--space-5) var(--space-3) 0; }
.pick-rules .pick-lead { margin: 0 0 var(--space-4); font-size: var(--text-lg); line-height: 1.7; color: var(--text-muted); }
.pick-rules h2 { margin: var(--space-5) 0 var(--space-2); font-size: var(--text-xl); color: var(--text-heading); }
.pick-rules p { margin: 0 0 var(--space-3); color: var(--text); line-height: 1.7; }
.pick-rules strong { color: var(--text-heading); }
.pick-rules a { color: var(--accent); text-decoration: none !important; font-weight: var(--fw-bold); }
.pick-socials { display: flex; flex-direction: column; gap: 8px; margin: 0 0 var(--space-3); }
.pick-soc { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--accent); font-weight: var(--fw-bold); text-decoration: none; }
.pick-soc .soc-icon { width: 20px; height: 20px; flex-shrink: 0; background-color: var(--accent); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.pick-soc .soc-telegram { -webkit-mask-image: url(icons/social/telegram.svg); mask-image: url(icons/social/telegram.svg); }
.pick-soc .soc-instagram { -webkit-mask-image: url(icons/social/instagram.svg); mask-image: url(icons/social/instagram.svg); }
.pick-soc .soc-facebook { -webkit-mask-image: url(icons/social/facebook.svg); mask-image: url(icons/social/facebook.svg); }
.pick-soc .soc-youtube { -webkit-mask-image: url(icons/social/youtube.svg); mask-image: url(icons/social/youtube.svg); }
.pick-soc .soc-twitter { -webkit-mask-image: url(icons/social/twitter-alt-circle.svg); mask-image: url(icons/social/twitter-alt-circle.svg); }
.pick-soc .soc-threads { -webkit-mask-image: url(icons/social/threads.svg); mask-image: url(icons/social/threads.svg); }
.pick-rules ul { margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.pick-rules li { position: relative; padding-left: 22px; margin-bottom: 6px; color: var(--text); }
.pick-rules li::before { content: '▸'; position: absolute; left: 4px; color: var(--accent); }
.pick-rules-sign { clear: both; margin: var(--space-6) 0 0; text-align: right; font-style: italic; color: var(--text-muted); }
@media (max-width: 560px) { .pick-rules-fig { width: 120px; height: 120px; margin-right: var(--space-4); } }

/* Додатковий текст номінанта */
.contender-extra { margin-top: 8px; font-size: var(--text-sm); color: var(--text-faint); }
.contender-extra p { margin: 0 0 6px; }
.contender-extra p:last-child { margin-bottom: 0; }

/* Сторінка рейтингу */
.rating-cover {
	width: 96px; height: 96px; border-radius: var(--radius-xl);
	background-size: cover; background-position: center; flex-shrink: 0;
}
.rating-intro { max-width: 760px; margin: 4px 0; color: var(--text-muted); }
.rating-intro p { margin: 0 0 var(--space-3); }

/* Коментарі на сторінці рейтингу (стиль Pick) */
.rating-comments { margin-top: var(--space-4); }
.comment-list { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.comment-list .children { list-style: none; margin: var(--space-2) 0 0 21px; padding-left: 26px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: var(--space-2); }
.pick-cmt-body { display: flex; gap: 12px; background: transparent; border: 0; border-radius: 0; padding: var(--space-3) 0; }
.pick-cmt-ava { flex: 0 0 44px; }
.pick-cmt-ava img, .pick-cmt-avatar { width: 44px; height: 44px; border-radius: 50%; display: block; object-fit: cover; }
.pick-cmt-letter { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: var(--text-lg); }
.pick-cmt-main { flex: 1 1 0; min-width: 0; }
.pick-cmt-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pick-cmt-name { font-weight: var(--fw-bold); color: var(--text-heading); }
.pick-cmt-badge { font-size: var(--text-2xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); background: var(--surface-2); padding: 2px 7px; border-radius: var(--radius-pill); }
.pick-cmt-date { font-size: var(--text-xs); color: var(--text-faint); }
.pick-cmt-text { margin-top: 6px; color: var(--text); font-size: var(--text-sm); line-height: var(--leading-normal); overflow-wrap: anywhere; }
.pick-cmt-text p { margin: 0 0 8px; }
.pick-cmt-text p:last-child { margin-bottom: 0; }
.pick-cmt-actions { margin-top: 8px; }
.pick-cmt-actions a { font-size: var(--text-sm); color: var(--accent); font-weight: var(--fw-semibold); }
.comment-awaiting-moderation { display: block; font-size: var(--text-xs); color: var(--accent); margin: 4px 0; }
/* Форма коментаря */
.comment-respond { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-5); }
.comment-respond .comment-reply-title { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.comment-respond .comment-reply-title small { margin-left: 8px; font-size: var(--text-sm); }
.comment-form { display: flex; flex-direction: column; gap: var(--space-2); }
.comment-form p { margin: 0 0 var(--space-2); }
.comment-form label { display: block; font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
	background: var(--surface-2); color: var(--text); font: var(--text-md) var(--font-body); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; box-shadow: var(--shadow-focus); }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form textarea::placeholder { color: var(--text-faint); opacity: 1; font-size: var(--text-sm); line-height: 1.6; }
.comment-form .pick-invalid { border-color: #e5484d !important; box-shadow: 0 0 0 3px rgba(229,72,77,.18) !important; outline: none; }
.comment-form .form-submit { margin-top: var(--space-2); }
.comment-form .submit {
	display: inline-flex; align-items: center; height: 44px; padding: 0 22px; cursor: pointer;
	border: 0; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-ink);
	font-weight: var(--fw-semibold); font-size: var(--text-md); transition: transform .12s var(--ease), filter .12s var(--ease); }
.comment-form .submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form .comment-form-cookies-consent input { width: auto; }
.comment-respond .logged-in-as { font-size: var(--text-sm); color: var(--text-muted); }

/* --- Контентна типографіка: опис рейтингу (.rating-intro) + додатковий текст номінанта (.contender-extra).
   Тема за замовчуванням не стилізує a/blockquote/mark/code - задаємо тут, щоб HTML-контент виглядав завершено. --- */
.rating-intro a,
.contender-extra a,
.contender-desc a {
	color: var(--accent); text-decoration: underline;
	text-decoration-thickness: 1px; text-underline-offset: 2px;
	transition: text-decoration-thickness .12s var(--ease);
}
.rating-intro a:hover,
.contender-extra a:hover,
.contender-desc a:hover { text-decoration-thickness: 2px; }

.rating-intro mark,
.contender-extra mark {
	background: var(--accent-soft); color: inherit;
	padding: 0 4px; border-radius: var(--radius-sm);
}

.rating-intro blockquote,
.contender-extra blockquote {
	margin: 10px 0; padding: 2px 0 2px 14px;
	border-left: 3px solid var(--accent-line);
	font-style: italic; color: var(--text-muted);
}

.rating-intro code,
.contender-extra code {
	font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
	font-size: .9em; background: var(--surface);
	padding: 1px 5px; border-radius: var(--radius-sm);
}

.rating-intro strong, .rating-intro b { color: var(--text-heading); font-weight: var(--fw-semibold); }
.rating-intro abbr[title], .contender-extra abbr[title] { text-decoration: underline dotted; cursor: help; }

/* Список фактів/нагород у extra (узгоджено з .contender-desc) */
.contender-extra ul { margin: 6px 0 0; padding-left: 0; list-style: none;
	display: flex; flex-direction: column; gap: 3px; }
.contender-extra li { position: relative; padding-left: 18px; }
.contender-extra li::before { content: '▸'; position: absolute; left: 2px; color: var(--accent); }

/* Сторінка категорії: сітка карток рейтингів */
.rating-index {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--space-4); max-width: 1000px; margin: 0 auto;
}
.rating-card {
	display: block; background: var(--surface-card); border: 1px solid var(--border);
	border-radius: var(--radius-2xl); overflow: hidden; color: var(--text-heading);
	text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.rating-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rating-card__cover { height: 132px; background-size: cover; background-position: center; }
.rating-card__body { padding: 14px 16px; }
.rating-card__body h3 { font-size: var(--text-lg); margin-bottom: 4px; }
.rating-card__body span { font-size: var(--text-sm); color: var(--text-muted); }

/* Блоки категорій колекції: картка 25% + сітка 2x2 рейтингів; парні - дзеркальні */
.cat-blocks { display: flex; flex-direction: column; gap: var(--space-8); margin: var(--space-5) 0; }
.cat-block { display: grid; grid-template-columns: 25% 1fr; gap: var(--space-4); align-items: stretch; }
.cat-block + .cat-block { border-top: 1px solid var(--border); padding-top: var(--space-8); }
.cat-block:nth-child(even) { grid-template-columns: 1fr 25%; }
.cat-block:nth-child(even) .cat-block-card { order: 2; }
.cat-block:nth-child(even) .cat-block-grid { order: 1; }
.cat-block-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-2);
	padding: var(--space-5); border-radius: var(--radius-2xl); color: var(--text); text-decoration: none;
	background-color: var(--surface); background-size: cover; background-position: center; background-repeat: no-repeat;
	box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.cat-block-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-block-name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-2xl); line-height: 1.12; color: var(--text-heading); }
.cat-block-meta { font-size: var(--text-sm); color: var(--text-muted); }
[data-theme="dark"] .cat-block-meta { color: #fff; font-weight: var(--fw-bold); }
/* Фон поточної колекції на картці категорії (світла / темна тема) */
.cat-fon-kino { background-image: url(img/fon_s-kino.webp); }
.cat-fon-muzyka { background-image: url(img/fon_s_music.webp); }
.cat-fon-igry { background-image: url(img/fon_s_game.webp); }
.cat-fon-sport { background-image: url(img/fon_s_sport.webp); }
.cat-fon-yizha { background-image: url(img/fon_s_restoran.webp); }
.cat-fon-podorozhi { background-image: url(img/fon_s_turist.webp); }
.cat-fon-tehnologii { background-image: url(img/fon_s_tehnolog.webp); }
.cat-fon-kultura { background-image: url(img/fon_s_theatre.webp); }
[data-theme="dark"] .cat-fon-kino { background-image: url(img/fon_t-kino.webp); }
[data-theme="dark"] .cat-fon-muzyka { background-image: url(img/fon_t_music.webp); }
[data-theme="dark"] .cat-fon-igry { background-image: url(img/fon_t_game.webp); }
[data-theme="dark"] .cat-fon-sport { background-image: url(img/fon_t_sport.webp); }
[data-theme="dark"] .cat-fon-yizha { background-image: url(img/fon_t_restoran.webp); }
[data-theme="dark"] .cat-fon-podorozhi { background-image: url(img/fon_t_turist.webp); }
[data-theme="dark"] .cat-fon-tehnologii { background-image: url(img/fon_t_tehnolog.webp); }
[data-theme="dark"] .cat-fon-kultura { background-image: url(img/fon_t_theatre.webp); }
.cat-block-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); }
.cat-rating { min-width: 0; display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--radius-md);
	background: var(--surface-card); border: 1px solid var(--border); text-decoration: none;
	transition: background .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease); }
.cat-rating:hover { background: var(--surface); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat-rating-thumb { flex: 0 0 92px; height: 62px; border-radius: var(--radius-md);
	background-size: cover; background-position: center; background-repeat: no-repeat; }
.cat-rating-meta { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--text-muted); }
.cat-rating-meta .meta-ic { width: 14px; height: 14px; background-color: var(--text-muted); flex-shrink: 0; }
@media (max-width: 760px) {
	.cat-block, .cat-block:nth-child(even) { grid-template-columns: 1fr; }
	.cat-block:nth-child(even) .cat-block-card, .cat-block:nth-child(even) .cat-block-grid { order: 0; }
	.cat-block-grid { grid-template-columns: 1fr; }
}

/* === Рейтинги блоками (сторінка категорії): 1 велика картка + 2 малі стовпчиком, чергування ліво/право === */
.rating-blocks { display: flex; flex-direction: column; gap: var(--space-6); margin: var(--space-5) 0; }
.rating-block { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-2); align-items: stretch; }
.rating-block:nth-child(even) { grid-template-columns: 2fr 1fr; }
.rating-block:nth-child(even) .rb-big { order: 2; }
.rating-block:nth-child(even) .rb-side { order: 1; }
.rb-big { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 280px; padding: var(--space-5); border-radius: var(--radius-2xl); color: #fff; text-decoration: none;
	background: var(--accent); background-size: cover; background-position: center; background-repeat: no-repeat;
	box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.rb-big::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .12) 65%, rgba(0, 0, 0, 0) 100%); z-index: 0; }
.rb-big-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.rb-big:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rb-big-name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-3xl); line-height: 1.1; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.rb-big-meta { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: rgba(255, 255, 255, .92); }
.rb-big-meta .meta-ic { width: 16px; height: 16px; background-color: #fff; flex-shrink: 0; }
.rb-side { display: grid; grid-auto-rows: 1fr; gap: var(--space-2); min-width: 0; }
.rb-side .cat-rating { height: 100%; padding: 6px; gap: 14px; align-items: stretch; }
.rb-side .cat-rating-thumb { flex: 0 0 260px; height: auto; align-self: stretch; }
.rb-side .cat-rating .hs-item-text { justify-content: center; }
@media (max-width: 760px) {
	.rating-block, .rating-block:nth-child(even) { grid-template-columns: 1fr; }
	.rating-block:nth-child(even) .rb-big, .rating-block:nth-child(even) .rb-side { order: 0; }
	.rb-big { min-height: 200px; }
}

/* === ХЕДЕР - 2 РЯДИ (контейнер .wrap = 1200px по центру з design.css) === */
.header-top { display: flex; align-items: center; gap: 16px; height: 64px; }

/* Пошук (широке поле) */
.header-search { flex: 1; display: flex; min-width: 0; }
.header-search input[type="search"] {
	flex: 1; min-width: 0; height: 42px; padding: 0 14px;
	border: 1px solid var(--border-strong); border-right: 0;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
	background: var(--surface-card); color: var(--text); font: var(--text-md) var(--font-body);
}
.header-search input[type="search"]::placeholder { color: var(--text-faint); }
.header-search input[type="search"]:focus { outline: none; }
.header-search button {
	height: 42px; width: 46px; flex-shrink: 0; cursor: pointer; font-size: 18px;
	border: 1px solid var(--border-strong); border-radius: 0 var(--radius-md) var(--radius-md) 0;
	background: var(--surface-2); color: var(--text);
}
.header-search button:hover { background: var(--surface); }

/* Перемикач теми - іконка moon (світла) / sun (темна), прокручується при кліку */
.theme-toggle {
	width: 42px; height: 42px; flex-shrink: 0; padding: 0; cursor: pointer;
	display: grid; place-items: center;
	border: 1px solid var(--border-strong); border-radius: var(--radius-md);
	background: var(--surface-2); color: var(--text);
	transition: background .15s var(--ease), border-color .15s var(--ease);
}
.theme-toggle:hover { background: var(--surface); }
.theme-icon {
	width: 20px; height: 20px;
	background-color: #374856;
	-webkit-mask: url(icons/moon.svg) center / contain no-repeat;
	mask: url(icons/moon.svg) center / contain no-repeat;
}
[data-theme="dark"] .theme-icon {
	background-color: #f7f7f7;
	-webkit-mask-image: url(icons/sun.svg);
	mask-image: url(icons/sun.svg);
}
.theme-toggle.spin .theme-icon { animation: theme-spin .5s var(--ease); }
@keyframes theme-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .theme-toggle.spin .theme-icon { animation: none; } }

/* Ряд 2: меню - 8 пунктів рівної ширини */
.header-nav { border-top: 1px solid var(--border); position: relative; }
.header-nav .nav-list { display: flex; list-style: none; margin: 0; padding: 0; }
.header-nav .nav-list > li { flex: 1 1 0; }
/* Пункт - static, щоб мега-меню позиціонувалось відносно .header-nav (на всю ширину), а не пункту */
.header-nav .nav-item { position: static; }
.header-nav .nav-link {
	display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
	padding: 13px 8px; border: 0; background: none; cursor: pointer; white-space: nowrap;
	color: var(--text); font: var(--fw-medium) var(--text-sm)/1 var(--font-body);
	transition: background .15s var(--ease), color .15s var(--ease);
	border-radius: 0;
}
/* Іконки меню (SVG-маска; колір - за темою) */
.nav-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-color: #374856;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}
[data-theme="dark"] .nav-icon { background-color: #f7f7f7; }
.header-nav .nav-link:hover,
.header-nav .nav-item:hover .nav-link { background: var(--surface); color: var(--text-heading); }
/* Full-width мега-меню: напівпрозоре як хедер, виповзає з-під рядка меню (clip-path) */
.header-nav .mega {
	position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-dropdown); min-height: 200px;
	background: var(--header-bg);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	backdrop-filter: blur(18px) saturate(150%);
	border: 1px solid var(--border); border-top: 0;
	border-radius: 0 0 4px 4px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0);
	transition: opacity .28s var(--ease), clip-path .32s var(--ease), visibility .32s var(--ease);
}
.header-nav .nav-item:hover .mega,
.header-nav .nav-item.open .mega { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); }
.header-nav .mega-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px var(--space-5);
	padding: var(--space-4) var(--space-6); }
.header-nav .mega-body { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; align-self: flex-start; }
.header-nav .mega-title { align-self: flex-start; font-family: var(--font-display); font-size: var(--text-lg);
	font-weight: var(--fw-bold); color: var(--text-heading); text-transform: uppercase; letter-spacing: .03em;
	text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.header-nav .mega-subtitle { align-self: flex-start; font-size: var(--text-sm);
	color: var(--text-muted); line-height: 1.35; white-space: nowrap;
	text-shadow: 0 1px 6px rgba(0,0,0,.35); }
/* Темна тема: заголовок помаранчевий, підзаголовок білий (на темному фоні-картинці) */
[data-theme="dark"] .header-nav .mega-title { color: var(--accent); }
[data-theme="dark"] .header-nav .mega-subtitle { color: #fff; }
.header-nav .mega-links { display: grid; grid-template-columns: repeat(3, 180px); gap: 6px; }
/* Картка «В ТРЕНДІ» справа в підменю: останній рейтинг категорії */
.header-nav .mega-trend { position: relative; flex: 0 0 auto; margin-left: auto; display: block;
	height: 160px; aspect-ratio: 3 / 2; border-radius: var(--radius-xl); overflow: hidden;
	background-size: cover; background-position: center; box-shadow: var(--shadow-md);
	text-decoration: none; transition: transform var(--transition-fast) var(--ease); }
.header-nav .mega-trend::after { content: ''; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0) 55%); }
.header-nav .mega-trend:hover { transform: scale(1.04); }
[data-theme="dark"] .header-nav .mega-trend { box-shadow: 0 0 22px rgba(255,255,255,.22), 0 8px 26px rgba(0,0,0,.5); }
.header-nav .mega-trend-badge { position: absolute; top: 10px; left: 10px; z-index: 1;
	font-size: var(--text-2xs); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase;
	color: #fff; background: var(--accent); padding: 3px 8px; border-radius: var(--radius-sm); }
.header-nav .mega-trend-title { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1;
	color: #fff; font-weight: var(--fw-bold); font-size: var(--text-sm); line-height: 1.2;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.header-nav .mega-link {
	display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px;
	border-radius: 8px; color: var(--text); font-size: var(--text-md); font-weight: var(--fw-bold);
	background: color-mix(in srgb, var(--surface-2) 60%, transparent);
	-webkit-backdrop-filter: blur(8px) saturate(120%); backdrop-filter: blur(8px) saturate(120%);
	box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 14px rgba(255,255,255,.06), 0 4px 16px rgba(0,0,0,.22);
}
.header-nav .mega-link:hover { background: color-mix(in srgb, var(--accent) 28%, transparent); border-color: var(--accent-line); color: var(--text-heading); }
.header-nav .mega-link .cnt { color: var(--text-faint); font-size: var(--text-xs); }
@media (prefers-reduced-motion: reduce) { .header-nav .mega { transition: none; } }

/* Категорійні фони мега-меню: спільний шар ::before, картинка - per-category (світла/темна тема) */
.header-nav .mega { overflow: hidden; }
.header-nav .mega::before { content: ''; position: absolute; inset: 0; z-index: 0;
	background-position: center; background-size: cover; background-repeat: no-repeat;
	opacity: .8; pointer-events: none; }
.header-nav .mega .mega-inner { position: relative; z-index: 1; }
/* Світла тема */
.header-nav .mega-kino::before { background-image: url(img/fon_s-kino.webp); }
.header-nav .mega-muzyka::before { background-image: url(img/fon_s_music.webp); }
.header-nav .mega-igry::before { background-image: url(img/fon_s_game.webp); }
.header-nav .mega-kultura::before { background-image: url(img/fon_s_theatre.webp); }
.header-nav .mega-yizha::before { background-image: url(img/fon_s_restoran.webp); }
.header-nav .mega-podorozhi::before { background-image: url(img/fon_s_turist.webp); }
.header-nav .mega-tehnologii::before { background-image: url(img/fon_s_tehnolog.webp); }
.header-nav .mega-sport::before { background-image: url(img/fon_s_sport.webp); }
.header-nav .mega-media::before { background-image: url(img/fon_s_media.webp); }
/* Темна тема */
[data-theme="dark"] .header-nav .mega-kino::before { background-image: url(img/fon_t-kino.webp); }
[data-theme="dark"] .header-nav .mega-muzyka::before { background-image: url(img/fon_t_music.webp); }
[data-theme="dark"] .header-nav .mega-igry::before { background-image: url(img/fon_t_game.webp); }
[data-theme="dark"] .header-nav .mega-kultura::before { background-image: url(img/fon_t_theatre.webp); }
[data-theme="dark"] .header-nav .mega-yizha::before { background-image: url(img/fon_t_restoran.webp); }
[data-theme="dark"] .header-nav .mega-podorozhi::before { background-image: url(img/fon_t_turist.webp); }
[data-theme="dark"] .header-nav .mega-tehnologii::before { background-image: url(img/fon_t_tehnolog.webp); }
[data-theme="dark"] .header-nav .mega-sport::before { background-image: url(img/fon_t_sport.webp); }
[data-theme="dark"] .header-nav .mega-media::before { background-image: url(img/fon_t_media.webp); }

/* Картинка-ілюстрація зліва в розкритій панелі (своя для кожної категорії) */
.header-nav .mega-pic { display: none; flex: 0 0 auto; width: 160px; height: 160px;
	background-position: center; background-size: cover;
	background-repeat: no-repeat; }
/* Картинки-ілюстрації підменю (своя на кожну категорію) */
.header-nav .mega-kino .mega-pic,
.header-nav .mega-muzyka .mega-pic,
.header-nav .mega-igry .mega-pic,
.header-nav .mega-kultura .mega-pic,
.header-nav .mega-yizha .mega-pic,
.header-nav .mega-podorozhi .mega-pic,
.header-nav .mega-tehnologii .mega-pic,
.header-nav .mega-media .mega-pic,
.header-nav .mega-sport .mega-pic { display: block; }
.header-nav .mega-kino .mega-pic { background-image: url(img/p_kino.webp); }
.header-nav .mega-muzyka .mega-pic { background-image: url(img/p_music.webp); }
.header-nav .mega-igry .mega-pic { background-image: url(img/p_game.webp); }
.header-nav .mega-kultura .mega-pic { background-image: url(img/p_culture.webp); }
.header-nav .mega-yizha .mega-pic { background-image: url(img/p_eat.webp); }
.header-nav .mega-podorozhi .mega-pic { background-image: url(img/p_turist.webp); }
.header-nav .mega-tehnologii .mega-pic { background-image: url(img/p_tehnology.webp); }
.header-nav .mega-sport .mega-pic { background-image: url(img/p_sport.webp); }
.header-nav .mega-media .mega-pic { background-image: url(img/p_media.webp); }

/* === Плитки категорій: фото-фон (режим data-tiles="cover") - ті самі картинки, що в мега-меню === */
[data-tiles="cover"] .tile { color: #fff; border: 0; background: var(--tile-grad, var(--accent)); }
[data-tiles="cover"] .tile::before { content: ''; position: absolute; inset: 0; z-index: 0;
	background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .8; pointer-events: none; }
[data-tiles="cover"] .tile-icon, [data-tiles="cover"] .tile-name, [data-tiles="cover"] .tile-meta { position: relative; z-index: 1; }
[data-tiles="cover"] .tile-name { font-weight: var(--fw-bold); text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
[data-tiles="cover"] .tile-icon { background: color-mix(in srgb, var(--surface-2) 60%, transparent);
	-webkit-backdrop-filter: blur(8px) saturate(120%); backdrop-filter: blur(8px) saturate(120%);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 14px rgba(255, 255, 255, .06), 0 4px 16px rgba(0, 0, 0, .22); }
[data-tiles="cover"] .tile-meta { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 5px rgba(0, 0, 0, .4); }
[data-tiles="cover"] .tile-meta .nav-icon { width: 14px; height: 14px; }
[data-tiles="cover"] .tile-arrow { display: none; }
[data-tiles="cover"] .tile:hover { box-shadow: var(--shadow-lg); }
/* Світла тема */
[data-tiles="cover"] .tile-kino::before { background-image: url(img/fon_s-kino.webp); }
[data-tiles="cover"] .tile-muzyka::before { background-image: url(img/fon_s_music.webp); }
[data-tiles="cover"] .tile-igry::before { background-image: url(img/fon_s_game.webp); }
[data-tiles="cover"] .tile-sport::before { background-image: url(img/fon_s_sport.webp); }
[data-tiles="cover"] .tile-yizha::before { background-image: url(img/fon_s_restoran.webp); }
[data-tiles="cover"] .tile-podorozhi::before { background-image: url(img/fon_s_turist.webp); }
[data-tiles="cover"] .tile-tehnologii::before { background-image: url(img/fon_s_tehnolog.webp); }
[data-tiles="cover"] .tile-kultura::before { background-image: url(img/fon_s_theatre.webp); }
[data-tiles="cover"] .tile-media::before { background-image: url(img/fon_s_media.webp); }
/* Темна тема */
[data-theme="dark"][data-tiles="cover"] .tile-kino::before { background-image: url(img/fon_t-kino.webp); }
[data-theme="dark"][data-tiles="cover"] .tile-muzyka::before { background-image: url(img/fon_t_music.webp); }
[data-theme="dark"][data-tiles="cover"] .tile-igry::before { background-image: url(img/fon_t_game.webp); }
[data-theme="dark"][data-tiles="cover"] .tile-sport::before { background-image: url(img/fon_t_sport.webp); }
[data-theme="dark"][data-tiles="cover"] .tile-yizha::before { background-image: url(img/fon_t_restoran.webp); }
[data-theme="dark"][data-tiles="cover"] .tile-podorozhi::before { background-image: url(img/fon_t_turist.webp); }
[data-theme="dark"][data-tiles="cover"] .tile-tehnologii::before { background-image: url(img/fon_t_tehnolog.webp); }
[data-theme="dark"][data-tiles="cover"] .tile-kultura::before { background-image: url(img/fon_t_theatre.webp); }
[data-theme="dark"][data-tiles="cover"] .tile-media::before { background-image: url(img/fon_t_media.webp); }
/* Світла тема: темний текст/іконка на світлих картинках (білий лишається для темної теми) */
[data-theme="light"][data-tiles="cover"] .tile { color: #374856; }
[data-theme="light"][data-tiles="cover"] .tile-name { color: #374856; text-shadow: 0 1px 4px rgba(255, 255, 255, .55); }
[data-theme="light"][data-tiles="cover"] .tile-meta { color: #374856; text-shadow: 0 1px 3px rgba(255, 255, 255, .5); }
[data-theme="light"][data-tiles="cover"] .tile-icon .nav-icon { background-color: #374856; }

.burger { display: none; }

/* Мобільне меню: акордеон колекцій (тап по колекції плавно розкриває її категорії) */
.oc-group { border-bottom: 1px solid var(--border); }
.oc-group:last-child { border-bottom: 0; }
.oc-toggle {
	display: flex; align-items: center; gap: 12px; width: 100%;
	padding: 14px 12px; border: 0; background: none; cursor: pointer; text-align: left;
	font: var(--fw-semibold) var(--text-md) var(--font-body); color: var(--text-heading);
}
.oc-toggle .nav-icon { width: 22px; height: 22px; }
.oc-toggle-label { flex: 1; min-width: 0; }
.oc-toggle:hover { color: var(--accent); }
/* Шеврон ▸ - повертається на 90° при розкритті */
.oc-chev {
	width: 9px; height: 9px; flex-shrink: 0; margin-right: 2px;
	border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
	transform: rotate(-45deg); transition: transform var(--transition-base) var(--ease);
}
.oc-group.open .oc-chev { transform: rotate(45deg); }
/* Підпункти: плавне розкриття висоти через grid-template-rows 0fr -> 1fr */
.oc-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition-base) var(--ease); }
.oc-group.open .oc-sub { grid-template-rows: 1fr; }
.oc-sub-inner { overflow: hidden; min-height: 0; }
.oc-sub .oc-link { padding-left: 46px; font-weight: var(--fw-medium); }

/* Адаптив хедера */
@media (max-width: 782px) {
	.header-nav { display: none; }
	.burger { display: grid; }
}
@media (max-width: 560px) {
	.header-top { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
	.header-search { order: 3; flex-basis: 100%; max-width: none; }
	/* Лого зліва, кнопки (тема/аватар/меню) - групою справа, бургер притиснутий до краю */
	.theme-toggle { margin-left: auto; }
}

/* Прості сторінки/архіви (тема pick-theme) */
.pick-page-title { margin-bottom: var(--space-3); }

/* Статичні сторінки (Правила голосування, Контакти тощо) - читабельна типографіка */
.pick-page { max-width: none; }
.pick-page p { margin: 0 0 var(--space-4); color: var(--text-muted); line-height: var(--leading-loose); }
.pick-page .pick-lead { font-size: var(--text-lg); color: var(--text); margin-bottom: var(--space-4); }
.pick-page h2 { margin: var(--space-6) 0 var(--space-3); font-size: var(--text-lg); }
.pick-page ul { margin: 0 0 var(--space-4); padding-left: 0; list-style: none;
	display: flex; flex-direction: column; gap: var(--space-2); }
.pick-page li { position: relative; padding-left: 22px; color: var(--text-muted); line-height: var(--leading-normal); }
.pick-page li::before { content: '▸'; position: absolute; left: 4px; color: var(--accent); }
.pick-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.pick-page a:hover { text-decoration-thickness: 2px; }
.pick-page strong { color: var(--text-heading); font-weight: var(--fw-semibold); }
.pick-page em { font-style: italic; }
.pick-page .pick-fig-right { float: right; width: 300px; max-width: 38%; height: auto; margin: 4px 0 var(--space-4) var(--space-6); border-radius: var(--radius-xl); }
@media (max-width: 560px) { .pick-page .pick-fig-right { float: none; display: block; width: 70%; max-width: 260px; margin: 0 auto var(--space-4); } }

/* Футер: об'єднаний блок «Категорії» - 8 колекцій у дві під-колонки (4 + 4) */
.footer-col-cats { grid-column: span 2; }
.footer-cats { display: grid; grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: var(--space-6); }
.footer-cats a { display: block; padding: 5px 0; font-size: var(--text-sm); opacity: .8; }
.footer-cats a:hover { opacity: 1; color: var(--accent); }
@media (max-width: 580px) { .footer-cats { grid-template-columns: 1fr 1fr; } }

/* Іконки соцмереж у футері: монохромна SVG-маска, колір успадковується (білий, hover - accent-ink) */
.soc-icon { width: 18px; height: 18px; display: block; background-color: currentColor;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-size: contain; mask-size: contain;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.pick-list-simple { display: flex; flex-direction: column; gap: var(--space-4); max-width: 760px; }
.pick-post-row h2 { font-size: var(--text-xl); margin-bottom: 4px; }
.pick-post-row p { color: var(--text-muted); font-size: var(--text-sm); margin: 0; }

/* === Split-hero слайдер: великий слайд + список збоку (1200px) === */
.hero-split { padding: var(--space-3) 0; }
.hs-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 4px; align-items: stretch; }
.hs-stage { position: relative; border-radius: var(--radius-2xl); overflow: hidden; min-height: 480px; }
.hs-slide {
	position: absolute; inset: 0; display: block; color: #fff; text-decoration: none;
	background-size: cover; background-position: center; background-repeat: no-repeat;
	opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.hs-slide.active { opacity: 1; visibility: visible; }
.hs-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .15) 52%, rgba(0, 0, 0, .05) 100%); }
.hs-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; padding: 28px 32px; }
.hs-eyebrow { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .9; margin-bottom: 8px; }
.hs-title { font-size: var(--text-5xl); font-family: var(--font-display); font-weight: var(--fw-bold); line-height: 1.04; color: #fff; margin-bottom: 8px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hs-sub { font-size: var(--text-lg); opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-dots { position: absolute; right: 24px; bottom: 24px; z-index: 2; display: flex; gap: 7px; }
.hs-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .45); transition: background .15s var(--ease), width .15s var(--ease); }
.hs-dot.active { background: var(--accent); width: 22px; border-radius: 5px; }
.hs-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hs-list-head { flex: 0 0 auto; font-size: var(--text-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding: 0 6px 4px; }
.hs-item { display: flex; gap: 12px; align-items: center; width: 100%; flex: 1 1 0; padding: 4px; border-radius: var(--radius-md); transition: background .15s var(--ease); }
.hs-item:hover, .hs-item.active { background: var(--surface); }
.hs-thumb { display: block; flex: 0 0 112px; height: 72px; border-radius: var(--radius-md); background-size: cover; background-position: center; background-repeat: no-repeat; cursor: pointer; transition: filter .15s var(--ease); }
.hs-thumb:hover { filter: brightness(1.06); }
.hs-item-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.hs-item-eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.hs-item-title { font-size: var(--text-md); font-weight: 700; color: var(--text-heading); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-item-sub { font-size: var(--text-xs); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) {
	.hs-grid { grid-template-columns: 1fr; }
	.hs-stage { min-height: 380px; }
	.hs-list { flex-direction: row; overflow-x: auto; gap: 10px; }
	.hs-list-head { display: none; }
	.hs-item { flex: 0 0 240px; }
	.hs-thumb { flex-basis: 72px; }
}
@media (max-width: 560px) {
	.hs-list { display: none; } /* мобільний: лише великий основний слайд із крапками */
	.hs-title { font-size: var(--text-3xl); }
	.hs-stage { min-height: 320px; }
}

/* === Автокарусель карток рейтингів (4 видно, цикл, крапки) === */
.pick-carousel { position: relative; }
.carousel-viewport { overflow: hidden; padding-block: 16px; margin-block: -16px; }
.carousel-track { display: flex; gap: 16px; will-change: transform; }
.carousel-card {
	position: relative; flex: 0 0 calc((100% - 48px) / 4); display: flex; flex-direction: column;
	background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-2xl);
	overflow: hidden; color: var(--text-heading); text-decoration: none;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.carousel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); z-index: 2; }
.carousel-cover { height: 150px; display: block; background-size: cover; background-position: center; background-repeat: no-repeat; }
.carousel-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.carousel-eyebrow { font-size: var(--text-xs); color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.carousel-title { font-size: var(--text-lg); font-weight: var(--fw-bold); line-height: 1.2; }
.carousel-meta { font-size: var(--text-sm); color: var(--text-muted); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--border-strong); transition: background .15s var(--ease), width .15s var(--ease); }
.carousel-dot.active { background: var(--accent); width: 22px; border-radius: 5px; }
@media (max-width: 860px) {
	.carousel-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 560px) {
	/* center-mode: активна картка по центру, з боків визирають краї сусідніх (зсув рахує pick.js) */
	.carousel-card { flex-basis: 80%; }
}

/* === Тематичні ряди категорій (Ranker-стиль) === */
.cat-row .section-head { margin-bottom: 12px; }
.cat-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: thin; }
.cat-strip .carousel-card { flex: 0 0 260px; scroll-snap-align: start; }
@media (max-width: 560px) {
	.cat-strip .carousel-card { flex-basis: 80%; }
}

/* === Бігуча стрічка під слайдером: випадкові номінанти (#місце Назва | Рейтинг) === */
.pick-ticker { border-bottom: 1px solid var(--border); background: var(--surface-card); overflow: hidden; }
.pick-ticker-track { display: flex; width: max-content; align-items: center; animation: tk-scroll 190s linear infinite; }
.pick-ticker:hover .pick-ticker-track { animation-play-state: paused; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 30px; text-decoration: none; white-space: nowrap; }
.tk-place { color: var(--accent); font-weight: var(--fw-bold); font-size: 1.18em; }
.tk-name { color: var(--text-heading); font-weight: var(--fw-bold); }
.tk-sep { color: var(--text-faint); }
.tk-rating { color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .pick-ticker-track { animation: none; } }

/* === Spotlight «Твій голос вирішує»: рандомні номінанти (Ranker-стиль) === */
.spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, minmax(78px, auto)); grid-auto-flow: column; gap: 14px 16px; }

.sl-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--radius-xl);
	background: var(--surface-card); border: 1px solid var(--border); color: var(--text-heading); text-decoration: none; overflow: hidden;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease); }
.sl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.sl-thumb { flex: 0 0 92px; align-self: stretch; min-height: 64px; border-radius: var(--radius-lg); background-size: cover; background-position: center; background-repeat: no-repeat; }
.sl-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sl-line { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.sl-num { flex: 0 0 auto; color: var(--accent); font-weight: 800; font-size: var(--text-lg); }
.sl-name { font-weight: var(--fw-bold); color: var(--text-heading); font-size: var(--text-lg); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-rating { color: var(--text-muted); font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Велика картка - фото-фон + текст оверлеєм знизу */
.sl-card--big { grid-row: span 3; align-items: stretch; padding: 0; border: 0; color: #fff;
	background-size: cover; background-position: center; background-repeat: no-repeat; }
.sl-card--big .sl-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, 0) 100%); }
.sl-card--big .sl-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px 22px; gap: 6px; }
.sl-card--big .sl-num { color: #fff; font-size: var(--text-2xl); }
.sl-card--big .sl-name { color: #fff; font-size: var(--text-3xl); font-family: var(--font-display); line-height: 1.08; white-space: normal;
	display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.sl-card--big .sl-rating { color: rgba(255, 255, 255, .9); font-size: var(--text-md); white-space: normal; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

@media (max-width: 860px) {
	.spotlight-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
	.sl-card--big { grid-row: auto; min-height: 220px; }
}

/* =============================================================================
   АВТОРИЗАЦІЯ: меню профілю (аватар + dropdown) + модалка входу/реєстрації
============================================================================= */

/* Меню профілю */
.user-menu { position: relative; flex-shrink: 0; }
.user-avatar-btn { width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-circle);
	background: none; cursor: pointer; display: grid; place-items: center;
	box-shadow: 0 0 0 2px var(--border-strong); transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.user-avatar-btn:hover { box-shadow: 0 0 0 2px var(--accent); transform: translateY(-1px); }
.user-avatar-img { width: 100%; height: 100%; border-radius: var(--radius-circle); display: block; object-fit: cover; }

.user-dropdown { position: absolute; right: 0; top: calc(100% + 10px); width: 220px; z-index: var(--z-dropdown);
	background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s var(--ease); }
.user-menu.open .user-dropdown { opacity: 1; visibility: visible; transform: none; }
.user-dropdown-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px;
	border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-dropdown-head .user-avatar-img { width: 40px; height: 40px; flex-shrink: 0; }
.user-dropdown-name { font-weight: var(--fw-semibold); color: var(--text-heading); font-size: var(--text-sm);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown-item { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text);
	text-decoration: none; font-size: var(--text-sm); font-weight: var(--fw-medium); transition: background .12s var(--ease); }
.user-dropdown-item:hover { background: var(--surface); color: var(--text-heading); }
.user-dropdown-exit { color: var(--down); }

/* Модальне вікно */
html.auth-lock { overflow: hidden; }
.auth-modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none;
	align-items: center; justify-content: center; padding: 20px; }
.auth-modal.show { display: flex; }
.auth-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.auth-dialog { position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 40px); overflow-y: auto;
	background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg); padding: 24px; animation: auth-in .22s var(--ease-spring); }
@keyframes auth-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-dialog { animation: none; } }
.auth-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: var(--radius-sm);
	background: var(--surface-2); color: var(--text-muted); cursor: pointer; font-size: 15px; line-height: 1; }
.auth-x:hover { background: var(--surface); color: var(--text-heading); }
.auth-heading { margin: 0 0 16px; font-size: var(--text-xl); font-family: var(--font-display);
	color: var(--text-heading); text-align: center; }

.auth-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-md); margin-bottom: 16px; }
.auth-tab { flex: 1; padding: 9px; border: 0; border-radius: var(--radius-sm); background: none; cursor: pointer;
	color: var(--text-muted); font: var(--fw-semibold) var(--text-sm)/1 var(--font-body); transition: background .14s var(--ease), color .14s var(--ease); }
.auth-tab.is-active { background: var(--surface-card); color: var(--text-heading); box-shadow: var(--shadow-sm); }

.auth-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px;
	border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-card);
	color: var(--text); font: var(--fw-semibold) var(--text-sm) var(--font-body); cursor: pointer; }
.auth-google[disabled] { opacity: .6; cursor: not-allowed; }
.auth-google[hidden] { display: none; }
.auth-google-wrap { display: flex; justify-content: center; min-height: 44px; }
.auth-google-btn { display: flex; justify-content: center; width: 100%; }
.auth-google-btn:empty { display: none; }
.auth-google-ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
	background: #fff; color: #4285f4; font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 1px var(--border); }
.auth-soon { font-size: var(--text-2xs); color: var(--text-faint); background: var(--surface-2);
	padding: 2px 6px; border-radius: var(--radius-pill); }

.auth-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--text-faint); font-size: var(--text-xs); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form[hidden] { display: none; } /* інакше display:flex перебиває атрибут hidden і видно обидві вкладки */
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field > span { font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-muted); }
.auth-field input { height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
	background: var(--surface-card); color: var(--text); font: var(--text-md) var(--font-body); }
.auth-field input:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }
.auth-remember { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-muted); cursor: pointer; }
.auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.auth-msg { padding: 10px 12px; border-radius: var(--radius-sm); font-size: var(--text-sm); }
.auth-msg.is-err { background: var(--down-soft); color: var(--down); }
.auth-msg.is-ok { background: var(--up-soft); color: var(--up); }

.auth-submit { height: 46px; margin-top: 4px; border: 0; border-radius: var(--radius-md); background: var(--accent); color: var(--accent-ink);
	font: var(--fw-semibold) var(--text-md) var(--font-body); cursor: pointer;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 36%, transparent); transition: filter .15s var(--ease), transform .15s var(--ease-spring); }
.auth-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.auth-submit.is-loading { opacity: .7; cursor: progress; }

/* Пропозиція реєстрації, коли пошта не знайдена */
.auth-suggest { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 16px;
	border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
.auth-suggest[hidden] { display: none; }
.auth-suggest-text { margin: 0; font-size: var(--text-sm); color: var(--text-heading); text-align: center; }
.auth-suggest .auth-submit { margin-top: 0; }
.auth-suggest .auth-link { align-self: center; }

/* Крок підтвердження пошти кодом (OTP) */
.auth-verify-lead { margin: 0 0 4px; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; }
.auth-verify-lead strong { color: var(--text-heading); font-weight: var(--fw-semibold); }
.auth-code { letter-spacing: 8px; text-align: center; font: var(--fw-bold) 22px var(--font-mono, monospace); }
.auth-verify-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.auth-link { background: none; border: 0; padding: 4px 0; color: var(--accent); font-size: var(--text-sm); cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-link:disabled { color: var(--text-muted); cursor: default; text-decoration: none; }

/* Кнопка входу й блок користувача в мобільному меню */
.btn-login-block { width: 100%; justify-content: center; height: 46px; border-radius: var(--radius-md); }
.offcanvas .btn-login span { display: inline; }
.oc-user { display: flex; align-items: center; gap: 10px; padding: 6px 6px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.oc-user .user-avatar-img { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--border-strong); }
.oc-user-name { font-weight: var(--fw-semibold); color: var(--text-heading); }

/* На мобільному кнопку «Вхід» у хедері ховаємо - гість заходить через мобільне меню (аватар лишається) */
@media (max-width: 782px) {
	.header-top .btn-login { display: none; }
}

/* =============================================================================
   СТОРІНКИ АКАУНТА: профіль (/profil) та статистика (/statystyka)
============================================================================= */

/* Контент акаунта - без білого «аркуша» (картки лягають на тло сторінки) */
.pick-main .wrap.account-wrap { background: none; box-shadow: none; padding: 0; margin-block: var(--space-8); }

/* Гість / заглушка «скоро» */
.account-guest, .account-soon { max-width: 560px; margin: 32px auto; text-align: center;
	background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md);
	padding: 40px 28px; box-shadow: var(--shadow-sm); }
.account-guest h1, .account-soon h1 { font-family: var(--font-display); color: var(--text-heading); margin: 0 0 10px; }
.account-guest p, .account-soon p { color: var(--text-muted); margin: 0 0 20px; line-height: var(--leading-normal); }
.account-soon-badge { display: inline-block; background: var(--accent-soft); color: var(--accent);
	font-weight: var(--fw-semibold); font-size: var(--text-xs); padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 12px; }

/* Шапка профілю */
.profile-head { display: flex; align-items: center; gap: 16px; max-width: 720px; margin: 0 auto 20px; }
.profile-head-avatar { width: 72px; height: 72px; border-radius: var(--radius-circle); box-shadow: 0 0 0 2px var(--border-strong); }
.profile-title { font-family: var(--font-display); color: var(--text-heading); margin: 0; font-size: var(--text-3xl); }
.profile-sub { color: var(--text-muted); margin: 2px 0 0; font-size: var(--text-sm); }

/* Повідомлення збереження */
.profile-notice { max-width: 720px; margin: 0 auto 16px; padding: 12px 16px; border-radius: var(--radius-md); font-size: var(--text-sm); }
.profile-notice--ok { background: var(--up-soft); color: var(--up); }
.profile-notice--err { background: var(--down-soft); color: var(--down); }

/* Форма */
.profile-form { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.profile-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md);
	padding: 22px; box-shadow: var(--shadow-sm); }
.profile-card-title { margin: 0 0 16px; font-size: var(--text-lg); color: var(--text-heading); font-weight: var(--fw-semibold); }
.profile-hint { color: var(--text-faint); font-size: var(--text-xs); margin: 10px 0 0; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-field { display: flex; flex-direction: column; gap: 6px; }
.profile-field > span { font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-muted); }
.profile-field input { height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
	background: var(--surface-card); color: var(--text); font: var(--text-md) var(--font-body); }
.profile-field input:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }
.profile-field-spacer { display: block; }
.profile-radios { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.profile-radios label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--text); cursor: pointer; }

/* Вибір аватарки (radio + :checked, без JS) */
.avatar-picker { display: flex; gap: 16px; flex-wrap: wrap; }
.avatar-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.avatar-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.avatar-opt-frame { display: grid; place-items: center; width: 88px; height: 88px; border-radius: var(--radius-circle);
	border: 2px solid var(--border); background: var(--surface-2); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.avatar-opt-frame img { width: 72px; height: 72px; border-radius: var(--radius-circle); }
.avatar-opt-label { font-size: var(--text-sm); color: var(--text-muted); }
.avatar-opt input:checked + .avatar-opt-frame { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.avatar-opt input:checked ~ .avatar-opt-label { color: var(--text-heading); font-weight: var(--fw-semibold); }
.avatar-opt input:focus-visible + .avatar-opt-frame { box-shadow: var(--shadow-focus); }
/* Завантаження власної аватарки */
.avatar-upload { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-4); flex-wrap: wrap; }
.avatar-upload-frame { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--accent); }
.avatar-upload-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-upload-ctrl { display: flex; flex-direction: column; gap: 8px; }
.avatar-upload-btn { display: inline-flex; cursor: pointer; }
.avatar-upload-btn input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.avatar-upload-btn span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--radius-pill);
	background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-heading); font-weight: var(--fw-semibold); font-size: var(--text-sm);
	transition: background .14s var(--ease), border-color .14s var(--ease); }
.avatar-upload-btn:hover span { border-color: var(--accent); }
.avatar-upload-btn input:focus-visible + span { box-shadow: var(--shadow-focus); }
.avatar-remove { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--text-muted); cursor: pointer; }
/* Опція «Своє фото» в ряду аватарок */
.avatar-opt-custom .avatar-opt-frame { position: relative; overflow: hidden; cursor: pointer; }
.avatar-opt-custom .avatar-opt-frame img { width: 72px; height: 72px; border-radius: var(--radius-circle); object-fit: cover; }
.avatar-opt-plus { font-size: 34px; font-weight: var(--fw-bold); color: var(--text-faint); line-height: 1; }
.avatar-opt-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-circle); background: rgba(0, 0, 0, .5); color: #fff; font-size: var(--text-xs); font-weight: var(--fw-semibold); opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.avatar-opt-custom .avatar-opt-frame:hover .avatar-opt-over,
.avatar-opt-custom .avatar-opt-frame:focus-visible .avatar-opt-over { opacity: 1; }
/* Кроп-модалка аватарки */
.crop-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.crop-modal[hidden] { display: none; }
.crop-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.crop-dialog { position: relative; z-index: 1; width: min(360px, 100%); padding: var(--space-5); border-radius: var(--radius-2xl); background: var(--surface-card); box-shadow: var(--shadow-lg); }
.crop-title { margin: 0 0 var(--space-3); font-size: var(--text-xl); color: var(--text-heading); }
.crop-stage { position: relative; width: 280px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2); cursor: grab; touch-action: none; user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .38); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: var(--space-4) 0; font-size: var(--text-sm); color: var(--text-muted); }
.crop-zoom input { flex: 1; }
.crop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.crop-spacer { flex: 1; }
.crop-delete { background: none; border: 0; height: 42px; padding: 0 12px; cursor: pointer; color: #d9544f; font-weight: var(--fw-semibold); }
.crop-other { background: none; border: 1px solid var(--border); border-radius: var(--radius-pill); height: 42px; padding: 0 16px; cursor: pointer; color: var(--text-strong); font-weight: var(--fw-semibold); }
.crop-cancel { background: none; border: 0; height: 42px; padding: 0 14px; cursor: pointer; color: var(--text-muted); font-weight: var(--fw-semibold); }
.crop-apply { height: 42px; padding: 0 22px; border: 0; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-ink); font-weight: var(--fw-semibold); cursor: pointer; }
/* Спливне повідомлення (toast) замість системного alert */
.pick-toast { position: fixed; top: 24px; left: 50%; z-index: 1100; max-width: min(420px, 92vw); padding: 13px 22px; border-radius: var(--radius-pill); background: rgba(28, 30, 34, .96); color: #fff; font-size: var(--text-sm); font-weight: var(--fw-semibold); line-height: 1.35; text-align: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, -16px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
/* Прихований текст для SEO/доступності (напр. H1 на головній) */
.pick-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pick-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Дії форми */
.profile-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; max-width: 720px; margin: 8px auto 0; }
.profile-cancel { color: var(--text-muted); text-decoration: none; font-size: var(--text-sm); }
.profile-cancel:hover { color: var(--text-heading); }
.profile-save { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px; border: 0;
	border-radius: var(--radius-md); background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none;
	font: var(--fw-semibold) var(--text-md) var(--font-body); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 36%, transparent);
	transition: filter .15s var(--ease), transform .15s var(--ease-spring); }
.profile-save:hover { filter: brightness(1.05); transform: translateY(-1px); }

@media (max-width: 560px) {
	.profile-grid { grid-template-columns: 1fr; }
	.profile-field-spacer { display: none; }
}

/* === Панель статистики (/statystyka) === */
.account-wrap > .profile-card { max-width: 720px; margin: 0 auto 18px; }

/* Порожній стан */
.stats-empty { max-width: 560px; margin: 32px auto; text-align: center;
	background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md);
	padding: 40px 28px; box-shadow: var(--shadow-sm); }
.stats-empty-emoji { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.stats-empty h2 { font-family: var(--font-display); color: var(--text-heading); margin: 0 0 10px; }
.stats-empty p { color: var(--text-muted); margin: 0 0 22px; line-height: var(--leading-normal); }

/* Картки-метрики */
.stats-grid { max-width: 720px; margin: 0 auto 18px;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md);
	padding: 18px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; }
.stat-card--wide { grid-column: span 2; }
.stat-num { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; color: var(--text-heading); font-weight: var(--fw-bold); }
.stat-num--sm { font-size: var(--text-xl); }
.stat-label { font-size: var(--text-xs); color: var(--text-muted); font-weight: var(--fw-medium); }
.stat-card--up .stat-num { color: var(--up); }
.stat-card--down .stat-num { color: var(--down); }

/* Смужка співвідношення за/проти */
.stats-ratio { display: flex; height: 34px; border-radius: var(--radius-pill); overflow: hidden; background: var(--surface-2); }
.stats-ratio span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: var(--text-sm);
	font-weight: var(--fw-semibold); white-space: nowrap; min-width: 0; }
.stats-ratio-up { background: var(--up); }
.stats-ratio-down { background: var(--down); }
.stats-ratio-legend { display: flex; gap: 20px; margin-top: 12px; font-size: var(--text-sm); color: var(--text-muted); flex-wrap: wrap; }
.stats-ratio-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot-up { background: var(--up); }
.dot-down { background: var(--down); }

/* Шкали колекцій */
.stats-bars { display: flex; flex-direction: column; gap: 12px; }
.stats-bar { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 12px; }
.stats-bar-name { font-size: var(--text-sm); color: var(--text-heading); font-weight: var(--fw-medium);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-bar-emoji { margin-right: 4px; }
.stats-bar-track { height: 12px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.stats-bar-fill { display: block; height: 100%; border-radius: var(--radius-pill);
	background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, transparent), var(--accent)); }
.stats-bar-val { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Діаграма за місяцями */
.stats-months { display: flex; align-items: flex-end; gap: 8px; height: 160px; }
.stats-month { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.stats-month-bar { position: relative; flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.stats-month-fill { width: 70%; max-width: 30px; border-radius: 4px 4px 0 0;
	background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, transparent)); transition: height .3s var(--ease); }
.stats-month-count { position: absolute; top: -2px; transform: translateY(-100%); font-size: var(--text-xs);
	color: var(--text-muted); font-weight: var(--fw-semibold); }
.stats-month-label { font-size: var(--text-xs); color: var(--text-faint); }

/* Історія голосів */
.stats-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stats-hist { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.stats-hist:first-child { border-top: 0; padding-top: 0; }
.stats-hist-thumb { flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius-md); background-size: cover;
	background-position: center; background-color: var(--accent-soft); display: grid; place-items: center; text-decoration: none; overflow: hidden; }
.stats-hist-thumb span { font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--accent); font-size: var(--text-lg); }
.stats-hist-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stats-hist-title { font-size: var(--text-md); color: var(--text-heading); font-weight: var(--fw-semibold); text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-hist-title:hover { color: var(--accent); }
.stats-hist-nominee { font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-hist-nominee strong { color: var(--text); font-weight: var(--fw-semibold); }
.stats-hist-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.stats-hist-dir { font-size: 18px; line-height: 1; }
.stats-hist-time { font-size: var(--text-xs); color: var(--text-faint); white-space: nowrap; }
.stats-history-more { margin: 14px 0 0; font-size: var(--text-xs); color: var(--text-faint); text-align: center; }
.stats-hist-super { color: var(--gold); font-size: 15px; line-height: 1; filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--gold) 45%, transparent)); }

/* Суперголос: золотий акцент (у дусі золотої стрілки на фронті) */
.stats-super-card { border-color: color-mix(in srgb, var(--gold) 40%, var(--border));
	background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 7%, var(--surface-card)), var(--surface-card)); }
.stats-super-star { color: var(--gold); margin-right: 2px; filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--gold) 45%, transparent)); }
.stats-super-metrics { display: flex; gap: 12px; margin-bottom: 4px; }
.stats-super-metric { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
	border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border)); border-radius: var(--radius-md);
	background: color-mix(in srgb, var(--gold) 8%, var(--surface-card)); }
.stats-super-num { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; font-weight: var(--fw-bold);
	color: color-mix(in srgb, var(--gold) 55%, var(--text-heading)); }
.stats-super-label { font-size: var(--text-xs); color: var(--text-muted); font-weight: var(--fw-medium); }
.stats-super-empty { margin: 16px 0 0; font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-normal); }

.stats-super-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; }
.stats-super-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.stats-super-item:first-child { border-top: 0; padding-top: 4px; }
.stats-super-thumb { position: relative; }
.stats-super-badge { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%;
	display: grid; place-items: center; font-size: 11px; line-height: 1; color: #4a3208;
	background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 2px 6px color-mix(in srgb, var(--gold) 50%, transparent); }
.stats-super-item .stats-hist-time { margin-left: auto; }

@media (max-width: 640px) {
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stat-card--wide { grid-column: span 2; }
	.stats-bar { grid-template-columns: 96px 1fr auto; gap: 8px; }
	.stats-hist-time { display: none; }
	.stats-super-item .stats-hist-time { display: none; }
}

/* === Мобільна версія сторінки рейтингу (<=760px) === */
.vc-short { display: none; }
.contender-text { position: relative; overflow: hidden; transition: max-height .4s var(--ease); }
@media (max-width: 760px) {
	/* Смуги «Голосуй» / «Що скажете»: короткий текст в один рядок з іконкою */
	.vc-full { display: none; }
	.vc-short { display: inline; }
	.vote-callout { flex-wrap: nowrap; gap: var(--space-2); padding: var(--space-3); text-align: left; }
	.vote-callout-text { font-size: var(--text-sm); line-height: 1.3; }

	/* Картка номінанта: рядок1 - назва; рядок2 - фото + голоси + кнопки; рядок3 - опис; рядок4 - кнопка */
	.contender {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"title  title"
			"avatar vote"
			"text   text"
			"more   more";
		gap: var(--space-2) var(--space-3);
		align-items: start;
	}
	.contender-body { display: contents; }
	.contender-title { grid-area: title; }
	.contender-title h3 { font-size: var(--text-lg); }
	.avatar { grid-area: avatar; width: 100%; align-self: start; }
	.vote-block {
		grid-area: vote; flex-direction: column; align-items: center; justify-content: center;
		gap: var(--space-2); width: auto; min-width: 0; border-top: 0; padding-top: 0; margin-top: 0;
	}
	.contender-text { grid-area: text; }
	/* числа голосів точно під своєю кнопкою (ширина = ширина кнопки на мобільному) */
	.vc-up, .vc-down { width: 56px; }
	.vote-block .score-wrap { align-items: baseline; }
	.vote-block .score-top { line-height: 1; }
	.contender .read-more { grid-area: more; position: static; display: none; width: 100%; text-align: center; }
	.contender.has-more .read-more { display: block; }
	.contender.has-more:not(.expanded) .contender-text::after {
		content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; pointer-events: none;
		background: linear-gradient(to bottom, transparent, var(--surface-card) 88%);
	}
}

/* ============================================================
   Суперголос: золота стрілка «за» + модалка підтвердження + тост
   ============================================================ */

/* Золотий стан стрілки «за» (Суперголос). Перекриває зелений .active. */
.contender.supervoted { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); }
.vote-btn.up.super,
.vote-btn.up.super:hover {
	border-color: var(--gold); color: #4a3208;
	background: linear-gradient(135deg, var(--gold-2), var(--gold));
	box-shadow: 0 4px 14px color-mix(in srgb, var(--gold) 45%, transparent);
}
.vote-btn.up.super-burst { animation: superburst .6s var(--ease); }
@keyframes superburst {
	0% { transform: scale(1); }
	35% { transform: scale(1.28); }
	100% { transform: scale(1); }
}

/* Модалка Суперголосу */
.pick-modal-backdrop {
	position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
	background: rgba(10, 10, 15, .55); opacity: 0; transition: opacity .2s var(--ease);
}
.pick-modal-backdrop.show { opacity: 1; }
.pick-modal-backdrop[hidden] { display: none; }
.pick-modal {
	position: relative; width: min(420px, 100%); text-align: center;
	background: var(--surface-card, var(--surface)); border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg); padding: 28px 24px 22px; box-shadow: var(--shadow-md);
	transform: translateY(8px) scale(.98); transition: transform .2s var(--ease);
}
.pick-modal-backdrop.show .pick-modal { transform: none; }
.pick-modal-x {
	position: absolute; top: 8px; right: 12px; border: 0; background: none;
	font-size: 26px; line-height: 1; cursor: pointer; color: var(--text-faint);
}
.pick-modal-x:hover { color: var(--text); }
.pick-modal-star {
	width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
	display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold));
	box-shadow: 0 6px 18px color-mix(in srgb, var(--gold) 45%, transparent);
}
.pick-modal-star::before { content: '★'; font-size: 28px; color: #4a3208; }
.pick-modal h3 { margin: 0 0 8px; font-size: var(--text-lg); }
.pick-modal-sub { margin: 0 0 18px; color: var(--text-faint); font-size: var(--text-sm); line-height: 1.5; }
.pick-modal-actions { display: flex; flex-direction: column; gap: 8px; }
.pick-modal-btn {
	padding: 11px 16px; border-radius: var(--radius-md); border: 1px solid var(--border-strong);
	font-weight: 700; font-size: var(--text-sm); cursor: pointer;
	background: var(--surface); color: var(--text); transition: transform .15s var(--ease), filter .15s var(--ease);
}
.pick-modal-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.pick-modal-btn.gold { border-color: var(--gold); color: #4a3208; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.pick-modal-btn.danger { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, var(--border-strong)); }
.pick-modal-btn.plain { background: none; color: var(--text-faint); border-color: transparent; }

/* Тост. inset зі словом auto для top - гарантує, що елемент НЕ розтягується по висоті
   (fixed-блок тягнеться вертикально лише коли задані ОБИДВА - top і bottom). */
.pick-toast {
	position: fixed; inset: auto auto 28px 50%; z-index: 1100;
	width: max-content; max-width: min(92vw, 460px); height: auto;
	text-align: center; line-height: 1.4;
	transform: translate(-50%, 20px); background: var(--text); color: var(--bg);
	padding: 12px 18px; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 600;
	box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
	transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.pick-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Заблокована кнопка голосу. Проголосована (active) лишається яскравою - це показ «за кого голосував»
   (зокрема гостю, чий стан відновлено з IP-сліду); непроголосована - приглушена. Курсор - «не можна». */
.vote-btn:disabled { cursor: not-allowed; }
.vote-btn.active:disabled { opacity: 1; }
.vote-btn:disabled:not(.active) { opacity: .5; }
