/* Video Party v8: "вечерний киносеанс" — тёплая закатная тема.
   Тёплый полумрак, амбер-сигнал, воздушные отступы, лёгкие тени.
   Performance: без backdrop-filter/blur, без анимаций box-shadow, системные шрифты. */
:root {
    --ink: #181310;
    --ink-2: #1d1712;
    --panel: #211b15;
    --panel-2: #2a221a;
    --panel-3: #332a20;
    --paper: #211b15;
    --paper-ink: #f2e9df;
    --text: #f2e9df;
    --text-muted: #9a8d80;
    --text-soft: #c9bcae;
    --line: rgba(255, 240, 224, 0.09);
    --line-soft: rgba(255, 240, 224, 0.07);
    --surface: #211b15;
    --surface-2: #2a221a;
    --surface-3: #332a20;
    --border: rgba(255, 240, 224, 0.12);
    --input-bg: #1d1712;
    --primary: #ff9147;
    --primary-hover: #ffa260;
    --primary-soft: rgba(255, 145, 71, 0.16);
    --accent: #ff9147;
    --accent-hover: #ffa260;
    --accent-soft: rgba(255, 145, 71, 0.16);
    --signal: #ff9147;
    --danger: #e07a5f;
    --danger-soft: rgba(224, 122, 95, 0.15);
    --warn: #e0a458;
    --success: #9db57e;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: var(--font-sans);
    --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
    --shadow: 0 20px 48px rgba(20, 10, 4, 0.45);
    --shadow-md: 0 12px 32px rgba(20, 10, 4, 0.35);
    --shadow-sm: 0 4px 16px rgba(20, 10, 4, 0.25);
    --glow: none;
    --card-hover: translateY(-2px);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-full: 999px;
}

[data-theme="light"] {
    --ink: #f7f0e6;
    --ink-2: #efe6d9;
    --panel: #fffaf3;
    --panel-2: #f3ead9;
    --panel-3: #e9dfcd;
    --paper: #fffaf3;
    --paper-ink: #2c241c;
    --text: #2c241c;
    --text-muted: #8d7d6b;
    --text-soft: #57493b;
    --line: rgba(60, 40, 20, 0.1);
    --line-soft: rgba(60, 40, 20, 0.07);
    --surface: #fffaf3;
    --surface-2: #f3ead9;
    --surface-3: #e9dfcd;
    --border: rgba(60, 40, 20, 0.14);
    --input-bg: #fffaf3;
    --primary: #d97706;
    --primary-hover: #b45f05;
    --primary-soft: rgba(217, 119, 6, 0.14);
    --accent: #d97706;
    --accent-hover: #b45f05;
    --accent-soft: rgba(217, 119, 6, 0.14);
    --signal: #d97706;
    --danger: #c0533a;
    --danger-soft: rgba(192, 83, 58, 0.12);
    --warn: #a8771a;
    --shadow: 0 20px 48px rgba(60, 40, 20, 0.16);
    --shadow-md: 0 12px 32px rgba(60, 40, 20, 0.12);
    --shadow-sm: 0 4px 16px rgba(60, 40, 20, 0.08);
}

html,
body {
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-sans);
}

body {
    min-height: 100vh;
    background-image: none;
    transition: background-color 180ms ease, color 180ms ease;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

.container,
.cabinet-wrap,
.profile-wrap,
.club-wrap,
.wrap {
    max-width: 1180px;
    padding-left: 30px;
    padding-right: 30px;
}

/* Quiet masthead: soft pill nav, спокойные подписи. */
.app-nav {
    margin-bottom: 44px;
    padding: 14px 0 18px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.app-nav-brand a {
    gap: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-nav-brand a:hover { color: var(--primary); }
.brand-icon { border-radius: 8px; }
.app-nav-links { gap: 6px; }
.app-nav-link {
    padding: 8px 14px;
    border: 0;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}
.app-nav-link:hover,
.app-nav-link.active {
    background: var(--panel-2);
    color: var(--text);
}
.app-nav-link.active { color: var(--primary); font-weight: 600; }
.app-nav-user { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-full); }

/* Shared controls: тёплые пилюли, круглые icon-контролы, мягкий ховер. */
button,
.btn,
.vp-btn {
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease;
}

button,
.btn,
.vp-btn-primary,
.vp-btn:not(.vp-btn-outline) {
    background: var(--primary);
    color: #241a12;
}

button:hover:not(:disabled),
.btn:hover:not(:disabled),
.vp-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    color: #241a12;
    transform: translateY(-1px);
}

.btn-outline,
.vp-btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover:not(:disabled),
.vp-btn-outline:hover:not(:disabled) {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--text);
    transform: none;
}

.btn-icon,
.btn-mute,
.btn-fullscreen {
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 50%;
    background: var(--panel-2);
    border-color: transparent;
    color: var(--text-soft);
}
.btn-icon:hover:not(:disabled),
.btn-mute:hover:not(:disabled),
.btn-fullscreen:hover:not(:disabled) {
    background: var(--panel-3);
    border-color: var(--primary);
    color: var(--primary);
    transform: none;
}
.btn-icon-sm {
    min-width: 34px;
    min-height: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: var(--panel-2);
    border-color: transparent;
    color: var(--text-soft);
}
.btn-icon-sm:hover:not(:disabled) {
    background: var(--panel-3);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-sm {
    min-height: 36px;
    padding: 0 16px;
    font-size: 13px;
}
#playBtn { background: var(--primary); border-color: var(--primary); color: #241a12; }
#playBtn:hover:not(:disabled) { background: var(--primary-hover); color: #241a12; }
.room-view.playing #playBtn { display: none; }
.room-view:not(.playing) #pauseBtn { display: none; }
.theme-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border-color: var(--line);
    color: var(--text-soft);
}
.theme-toggle:hover { background: var(--panel-2); border-color: var(--primary); color: var(--primary); transform: none; }
.vp-hint-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border-color: var(--line);
    color: var(--text-muted);
}
.password-toggle,
.toast-v2-close { background: transparent; color: var(--text-muted); box-shadow: none; }

/* Inputs: тёплые углублённые поля, мягкий фокус. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
select,
textarea {
    min-height: 48px;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--text);
    box-shadow: none;
}
select { padding-left: 14px; background-color: var(--surface-2); }
textarea { border-radius: var(--radius-md); padding: 12px 16px; }
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Home: спокойный foyer. */
.home-hero-block {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 48px;
    align-items: stretch;
    min-height: 300px;
    margin-bottom: 32px;
    padding: 24px 0 40px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
.home-hero-block h1 { grid-column: 1; grid-row: 1; }
.home-hero-block .hero-lead { grid-column: 1; grid-row: 2; align-self: start; }
.home-hero-block .hero-badges { grid-column: 1; grid-row: 3; }
.home-hero-block::before {
    content: "ВЕЧЕРНИЙ СЕАНС / 5 МЕСТ";
    position: absolute;
    top: -18px;
    right: 0;
    width: auto;
    height: auto;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
}
.home-hero-block::after { display: none; }
.home-hero-block h1 {
    align-self: end;
    max-width: 640px;
    margin-bottom: 14px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.home-hero-block .hero-lead {
    align-self: end;
    max-width: 520px;
    margin-top: 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}
.hero-badges {
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    padding: 0;
    border: 0;
}
.hero-badge {
    padding: 7px 16px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.hero-badge:first-child { color: var(--primary); }
.hero-badge:last-child { border-right: 1px solid var(--line); }
.hero-film-frame {
    grid-column: 2;
    grid-row: 1 / 4;
    position: relative;
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.hero-film-frame::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    pointer-events: none;
}
.hero-film-frame::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}
.hero-film-label,
.hero-film-footer {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.hero-film-label { color: var(--primary); }
.hero-film-title {
    position: relative;
    z-index: 1;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.shared-name-bar {
    display: grid;
    grid-template-columns: auto minmax(180px, 280px) 1fr;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
    padding: 0 0 16px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}
.shared-name-bar label { margin: 0 !important; color: var(--text-muted) !important; font-family: var(--font-sans); font-size: 12px !important; font-weight: 600; letter-spacing: 0.04em; }
.nickname-generator { margin-top: 0; color: var(--text-muted); }
.home-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr); gap: 40px; margin-bottom: 48px; }
.home-card {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}
.home-card:hover { transform: none; box-shadow: none; }
.home-card h2 {
    margin-bottom: 18px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.action-explainer {
    max-width: 560px;
    margin: -6px 0 24px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}
#joinSection {
    order: 0;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(160px, 0.45fr);
    align-items: end;
    column-gap: 28px;
    padding: 30px 32px 32px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
#joinSection h2 { grid-column: 1 / -1; margin-bottom: 2px; }
#joinSection .action-explainer { grid-column: 1 / -1; margin-top: -4px; }
#joinSection .form-group { margin: 0; }
#joinSection button { min-width: 150px; }
.home-card:not(#joinSection) {
    grid-column: 1 / -1;
    padding: 32px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
}
.home-card:not(#joinSection) .action-explainer { max-width: 460px; }
.home-card:not(#joinSection) .create-wizard { margin-bottom: 24px; }
.wizard-steps { border-bottom: 1px solid var(--line) !important; }
.wizard-step { border-radius: var(--radius-full) !important; color: var(--text-muted) !important; }
.wizard-step.active { background: var(--panel-2) !important; color: var(--primary) !important; }
.room-type-toggle { gap: 8px; }
.room-type-btn { background: transparent; border: 1px solid var(--border); border-radius: var(--radius-full); color: var(--text-muted); }
.room-type-btn.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); box-shadow: none; }

/* Lists: спокойное расписание вечернего показа. */
.news-feed-section,
.rooms-list-section {
    margin-top: 0;
    padding: 22px 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
.news-feed-section { margin-bottom: 32px; }
.news-feed-header,
.rooms-list-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.news-feed-header h3,
.rooms-list-header h3 {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.rooms-list-actions { gap: 8px; }
.tag-filter { min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius-full); }
.rooms-list { margin-top: 14px; }
.room-card {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    transition: background-color 150ms ease;
}
.room-card:hover { background: var(--panel); border-color: var(--primary); box-shadow: none; transform: none; }
.room-card-cover { width: 148px; height: 84px; border-radius: var(--radius-md); }
.room-card-icon { border-radius: var(--radius-md); }
.room-card-body { min-width: 0; }
.room-card-body strong { color: var(--text); font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.room-card-meta { color: var(--text-muted); font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; }
.room-join-btn { min-height: 44px; }
.room-status-pill { border-radius: var(--radius-full); }
.room-tags .room-tag { border-radius: var(--radius-full); background: var(--panel-2); }
.rooms-empty,
.news-empty { padding: 24px 0; color: var(--text-muted); font-family: var(--font-sans); font-size: 13px; }
.desktop-download-card {
    margin: 36px 0 14px;
    padding: 22px 26px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.desktop-download-icon { border-radius: var(--radius-md); background: var(--panel-2); }
.site-footer,
.app-footer { border-top-color: var(--line); color: var(--text-muted); }

/* Room: экран — главное; хром мягкий. */
.room-view { gap: 32px; }
.room-header {
    margin-bottom: 20px;
    padding: 14px 0 18px;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
.room-header-center h2 { color: var(--text); font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.room-header-meta { font-family: var(--font-sans); }
.leave-btn { background: transparent; border-color: var(--border); color: var(--text-soft); }
.leave-btn:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); box-shadow: none; }
.status-badge { border-radius: var(--radius-full); }
.status-badge.status-live { background: rgba(255, 145, 71, 0.16); color: var(--signal); }
.status-badge.status-paused { background: rgba(224, 164, 88, 0.16); color: var(--warn); }
.conn-dot { background: var(--signal); }
.role-badge { border-radius: var(--radius-full); }
.mobile-tabs { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 5px; }
.mobile-tab { border-radius: var(--radius-full); color: var(--text-muted); }
.mobile-tab.active { background: var(--primary); color: #241a12; }
.video-section { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.video-wrapper { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #0d0a07; box-shadow: var(--shadow-sm); }
.player-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.seek-track-wrap,
.volume-track-wrap { background: rgba(255, 240, 224, 0.14); }
.seek-track-fill,
.volume-track-fill { background: var(--primary); }
.btn-sync { background: var(--warn) !important; color: #241a12 !important; }
input[type="range"] { accent-color: var(--primary); }
.share-box { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.share-row { min-width: 0; }
.share-row input { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.share-box label { color: var(--text-muted); font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.playlist-section,
.chat-section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.chat-header { background: var(--panel-2); border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.chat-input { border-top-color: var(--line); }
.chat-input input { background: transparent; }
.participant.is-self { background: var(--primary-soft); border-color: var(--primary); }
.participant.is-moderator { border-left-color: var(--primary); }
#playlistList li.active { background: var(--primary-soft); color: var(--text); }

/* Landing. */
.landing-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px;
    color: var(--text);
}
.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    gap: 48px;
    min-height: 0;
    padding: 56px 0 68px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    align-items: end;
}
.landing-hero::before {
    content: "ЧАСТНЫЙ КИНОКЛУБ / 2026";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
}
.landing-hero h1 {
    margin-bottom: 16px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.landing-lead { max-width: 560px; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.landing-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.landing-cta .vp-btn { border-radius: var(--radius-full); }
.landing-film-frame {
    min-height: 220px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.landing-film-frame strong { display: block; margin-top: 72px; color: var(--text); font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.landing-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
    gap: 16px;
    margin: 0;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}
.landing-feature {
    min-height: 120px;
    padding: 18px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: none;
}
.landing-feature::before { display: block; margin-bottom: 12px; color: var(--primary); content: "0" counter(feature); font-family: var(--font-sans); font-size: 12px; font-weight: 700; }
.landing-features { counter-reset: feature; }
.landing-feature { counter-increment: feature; }
.landing-feature h3 { margin-bottom: 8px; color: var(--text); font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.landing-feature p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.landing-footer { margin-top: 0; padding: 22px 0 0; border-top: 0; }

/* Consent: тихая полоска. */
.cookie-consent {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(720px, calc(100% - 32px));
    margin: 28px auto 12px;
    transform: none;
    padding: 14px 18px;
    background: var(--panel);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.cookie-consent p { color: var(--text); font-size: 13px; }
.cookie-consent .btn-outline { border-color: var(--border); color: var(--text); }
.cookie-consent .btn-outline:hover:not(:disabled) { background: var(--primary-soft); border-color: var(--primary); color: var(--text); }
.cookie-consent .btn:not(.btn-outline) { background: var(--primary); color: #241a12; }

body:has(#createScreen) .vp-feedback-fab,
body:has(.landing-page) .vp-feedback-fab,
body:has(#createScreen) .vp-feedback-panel,
body:has(.landing-page) .vp-feedback-panel { display: none !important; }

/* Secondary pages. */
.card,
.vp-card,
.trend-card,
.org-card,
.friend-card,
.vip-plan {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
}
.page-title { color: var(--text); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.cabinet-tabs .cabinet-tab.active,
.cabinet-sidebar .cabinet-tab.active { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); border-radius: var(--radius-full); }
.vp-skip-link:focus { background: var(--primary); color: #241a12; }

@media (max-width: 900px) {
    .home-hero-block,
    .landing-hero { grid-template-columns: 1fr; gap: 28px; }
    .home-hero-block { min-height: 0; }
    .hero-film-frame,
    .landing-film-frame { min-height: 150px; }
    #joinSection { grid-template-columns: 1fr 1fr; }
    #joinSection h2 { grid-column: 1 / -1; }
    #joinSection button { grid-column: 2; }
}

@media (max-width: 768px) {
    .container,
    .cabinet-wrap,
    .profile-wrap,
    .club-wrap,
    .wrap { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
    .app-nav { margin-bottom: 32px; }
    .app-nav-links { gap: 4px; overflow-x: auto; flex-wrap: nowrap; }
    .home-hero-block { padding-top: 18px; }
    .home-hero-block::before { position: absolute; top: -18px; right: 0; grid-column: auto; grid-row: auto; }
    .home-hero-block h1,
    .home-hero-block .hero-lead,
    .home-hero-block .hero-badges,
    .hero-film-frame { grid-column: 1; grid-row: auto; }
    .home-hero-block h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
    .hero-film-frame { min-height: 130px; padding: 16px; }
    .hero-film-title { font-size: 1.9rem; }
    .hero-badges { gap: 8px; }
    .hero-badge { font-size: 11px; }
    .shared-name-bar { grid-template-columns: 1fr; align-items: start; gap: 6px; }
    .shared-name-bar input { max-width: none; }
    .home-grid { display: flex; flex-direction: column; }
    #joinSection { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; padding: 26px 20px 28px; }
    #joinSection h2 { grid-column: auto; }
    #joinSection button { grid-column: auto; width: 100%; }
    .home-card:not(#joinSection) { padding: 30px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .room-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px 10px; }
    .room-card-cover { width: 96px; height: 62px; }
    .room-join-btn { grid-column: 2; justify-self: start; }
    .landing-page { padding: 18px; }
    .landing-hero { padding: 52px 0 44px; }
    .landing-hero h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
    .landing-features { grid-template-columns: 1fr 1fr; row-gap: 16px; }
    .cookie-consent { width: calc(100% - 20px); margin-top: 24px; }
    .cookie-consent p { min-width: 0; flex-basis: 100%; }
    .cookie-consent-actions { width: 100%; }
    .cookie-consent-actions .btn { flex: 1; }
    .room-header { align-items: stretch; }
    .room-header-center h2 { font-size: 19px; }
    .room-header-actions { justify-content: space-between; }
    .video-section { padding: 0; }
}

@media (max-width: 480px) {
    .home-card h2 { font-size: 20px; }
    .rooms-list-header { align-items: flex-start; flex-direction: column; }
    .rooms-list-actions { width: 100%; }
    .rooms-list-actions select { flex: 1; }
    .room-card-body strong { font-size: 15px; }
}

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