:root {
    --site-bg-start: #07101d;
    --site-bg-end: #050913;
    --site-surface: rgba(12, 20, 35, 0.84);
    --site-surface-strong: rgba(8, 14, 27, 0.94);
    --site-surface-soft: rgba(255, 255, 255, 0.04);
    --site-card: rgba(15, 24, 40, 0.9);
    --site-card-alt: rgba(13, 21, 36, 0.82);
    --site-border: rgba(149, 182, 255, 0.16);
    --site-border-strong: rgba(149, 182, 255, 0.3);
    --site-text: #eff4ff;
    --site-text-soft: #9fb0cf;
    --site-accent: #8ad7ff;
    --site-accent-strong: #4fbf88;
    --site-accent-soft: rgba(138, 215, 255, 0.16);
    --site-warning: #ffd27a;
    --site-success: #8bffcb;
    --site-shadow: 0 24px 60px rgba(2, 8, 19, 0.42);
    --site-radius-xl: 30px;
    --site-radius-lg: 22px;
    --site-radius-md: 16px;
    --site-radius-sm: 12px;
}

body.theme-forest {
    --site-bg-start: #0b1811;
    --site-bg-end: #08100c;
    --site-surface: rgba(13, 27, 18, 0.84);
    --site-surface-strong: rgba(9, 18, 12, 0.94);
    --site-card: rgba(16, 32, 22, 0.9);
    --site-card-alt: rgba(14, 24, 18, 0.86);
    --site-border: rgba(146, 223, 162, 0.18);
    --site-border-strong: rgba(146, 223, 162, 0.28);
    --site-text: #eefaf1;
    --site-text-soft: #9fbea7;
    --site-accent: #87e296;
    --site-accent-strong: #c6f68e;
}

body.theme-sunset {
    --site-bg-start: #1a0f12;
    --site-bg-end: #10080a;
    --site-surface: rgba(34, 19, 21, 0.84);
    --site-surface-strong: rgba(23, 13, 14, 0.94);
    --site-card: rgba(43, 24, 26, 0.9);
    --site-card-alt: rgba(33, 18, 19, 0.86);
    --site-border: rgba(255, 179, 145, 0.18);
    --site-border-strong: rgba(255, 179, 145, 0.28);
    --site-text: #fff6f1;
    --site-text-soft: #deb1a0;
    --site-accent: #ffb07b;
    --site-accent-strong: #ffd676;
}

body.theme-mono {
    --site-bg-start: #121315;
    --site-bg-end: #0b0c0d;
    --site-surface: rgba(25, 27, 29, 0.84);
    --site-surface-strong: rgba(18, 19, 20, 0.94);
    --site-card: rgba(31, 33, 35, 0.9);
    --site-card-alt: rgba(24, 25, 27, 0.86);
    --site-border: rgba(235, 235, 235, 0.14);
    --site-border-strong: rgba(235, 235, 235, 0.24);
    --site-text: #f4f4f4;
    --site-text-soft: #bababa;
    --site-accent: #d8d8d8;
    --site-accent-strong: #ffffff;
}

body.site-shell {
    margin: 0;
    min-height: 100vh;
    color: var(--site-text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(138, 215, 255, 0.16), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(79, 191, 136, 0.14), transparent 26%),
        linear-gradient(180deg, var(--site-bg-start) 0%, #09111f 24%, var(--site-bg-end) 100%);
}

body.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.55), transparent 88%);
    opacity: 0.4;
}

body.site-shell a {
    color: inherit;
}

.page-shell {
    width: min(1440px, calc(100% - 32px));
    margin: 20px auto 56px;
    position: relative;
    z-index: 1;
}

.site-topbar {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(18px);
    padding: 14px 18px;
    margin: 0 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border-radius: 22px;
}

.site-brand a,
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--site-text);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-brand a::before,
.brand-link::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-accent), var(--site-accent-strong));
    box-shadow: 0 0 18px rgba(138, 215, 255, 0.55);
}

.site-nav,
.hero-actions,
.hero-stats,
.hero-meta,
.section-actions,
.public-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.site-nav-link,
.ghost-link,
.hero-link,
.stat-link,
.action-link,
#vk-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.035);
    color: var(--site-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 15px;
    cursor: pointer;
    appearance: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-nav-link:hover,
.ghost-link:hover,
.hero-link:hover,
.stat-link:hover,
.action-link:hover,
#vk-login-btn:hover {
    transform: translateY(-1px);
    border-color: var(--site-border-strong);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 24px rgba(3, 8, 18, 0.22);
}

.site-nav-link.active,
.ghost-link.is-active,
.hero-link.is-active,
.hero-link.primary {
    background: linear-gradient(135deg, var(--site-accent), var(--site-accent-strong));
    border-color: transparent;
    color: #061119;
}

.page-hero,
.section-panel,
.chat-sidebar,
.video-card,
.video-title-hero,
.video-sidebar-card,
.custom-player,
.video-empty,
.public-profile-hero,
.public-profile-panel {
    background: linear-gradient(180deg, var(--site-card), var(--site-surface-strong));
    border: 1px solid var(--site-border);
    box-shadow: var(--site-shadow);
    border-radius: var(--site-radius-xl);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
    gap: 22px;
    overflow: hidden;
    padding: 24px;
    margin-bottom: 22px;
    position: relative;
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(138, 215, 255, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(79, 191, 136, 0.14), transparent 24%);
    z-index: 0;
}

.page-hero > * {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-copy {
    display: grid;
    align-content: center;
    gap: 16px;
}

.hero-kicker,
.section-kicker,
.video-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--site-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-kicker::before,
.section-kicker::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.hero-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero-text,
.section-note,
.panel-subtitle,
.public-profile-copy p,
.video-title-description,
.video-subtitle {
    color: var(--site-text-soft);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

.hero-stats {
    gap: 12px;
}

.page-stat {
    min-width: 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.035);
    display: grid;
    gap: 4px;
}

.page-stat strong {
    font-size: 1.6rem;
    line-height: 1;
}

.page-stat span {
    color: var(--site-text-soft);
    font-size: 0.9rem;
}

.hero-visual,
.slider-shell {
    display: grid;
    align-items: stretch;
}

.slider,
.slider-shell .slider {
    height: 100%;
    min-height: 340px;
    margin: 0;
    overflow: hidden;
    border-radius: calc(var(--site-radius-xl) - 6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 11, 20, 0.45);
    position: relative;
}

.page-hero.landing-hero {
    display: block;
    padding: 0;
    min-height: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.page-hero.landing-hero::before {
    display: none;
}

.page-hero.landing-hero .slider-shell {
    display: block;
}

.page-hero.landing-hero .slider,
.page-hero.landing-hero .slider-shell .slider {
    height: 430px;
    min-height: 430px;
    border-radius: var(--site-radius-xl);
    box-shadow: var(--site-shadow);
}

.page-hero.landing-hero .slides,
.page-hero.landing-hero .slide {
    height: 100%;
}

.page-hero.landing-hero .slide {
    align-items: stretch;
    padding: 34px 36px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.page-hero.landing-hero .slide::before {
    background:
        linear-gradient(90deg, rgba(5, 10, 18, 0.18) 0%, rgba(5, 10, 18, 0.04) 46%, rgba(5, 10, 18, 0.28) 100%),
        linear-gradient(180deg, rgba(5, 8, 14, 0.04) 0%, rgba(5, 8, 14, 0.22) 100%);
}

.page-hero.landing-hero .slide-content {
    align-self: flex-start;
    max-width: 48%;
}

.page-hero.landing-hero .slide img.character {
    right: -8px;
    bottom: -160px;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    box-sizing: border-box;
    color: #fff;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 8, 14, 0) 0%, rgba(6, 8, 14, 0.72) 100%);
}

.slide.full-link {
    text-decoration: none;
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 55%;
}

.slide-content h2,
.slide h2 {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    font-weight: 800;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.slide img.character {
    position: absolute;
    right: -18px;
    bottom: -74px;
    height: 148%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.content-column,
.sidebar-rail {
    min-width: 0;
}

.sidebar-rail {
    position: sticky;
    top: 20px;
}

.chat-sidebar {
    width: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 560px;
    max-height: calc(100vh - 44px);
    position: static;
    overflow: hidden;
}

.chat-header,
.chat-input-area {
    padding: 16px 18px;
    border-color: var(--site-border);
}

.chat-header {
    border-bottom: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.02);
}

.chat-header .chat-title {
    font-size: 1rem;
    font-weight: 700;
}

.chat-header .chat-status {
    color: var(--site-success);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.chat-messages {
    padding: 16px 18px;
    gap: 14px;
}

.reply-preview {
    margin: 6px 0 8px;
    padding: 7px 10px;
    border-left: 3px solid var(--site-accent);
    background: rgba(138, 215, 255, 0.12);
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #cbd8f4;
}

.reply-btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
    color: #8ea7ff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    text-decoration: none;
}

.reply-btn:hover {
    color: var(--site-accent);
}

.chat-reply-box {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    padding: 9px 10px;
    margin-bottom: 10px;
    background: rgba(21, 30, 48, 0.9);
    border: 1px solid rgba(142, 167, 255, 0.22);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #dce6ff;
}

.chat-reply-box b {
    color: var(--site-text);
}

.chat-input-area {
    border-top: 1px solid var(--site-border);
}

.chat-input-area form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.chat-input {
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--site-border);
    border-radius: 14px;
    padding: 11px 14px;
}

.chat-send-btn {
    align-self: stretch;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--site-accent), var(--site-accent-strong));
    color: #071119;
}

.message-author {
    color: var(--site-accent);
}

.message-time,
.chat-login-msg {
    color: var(--site-text-soft);
}

.section-panel {
    padding: 20px;
}

.section-panel + .section-panel {
    margin-top: 18px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 16px;
}

.section-header h2,
.section-title,
.video-catalog-title,
.video-title-heading,
.panel-title {
    margin: 0;
}

.section-header h2,
.section-title,
.panel-title {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.latest-panel {
    margin: 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(14, 23, 39, 0.94), rgba(8, 13, 24, 0.94));
}

.latest-grid,
.grid,
.artist-grid,
.video-catalog-grid {
    gap: 16px;
}

.latest-grid {
    --latest-gap: 16px;
    --latest-card-width: clamp(150px, 16vw, 205px);
    display: block;
    padding: 0;
    overflow: hidden;
}

.latest-marquee-viewport {
    width: 100%;
    overflow: hidden;
}

.latest-marquee-track,
.latest-marquee-set {
    display: flex;
    align-items: stretch;
    gap: var(--latest-gap);
    width: max-content;
}

.latest-card,
.artist-card,
.artist .art-card,
.profile-art-grid .art-card,
.collection-preview-grid .art-card {
    border-radius: 20px;
    border: 1px solid var(--site-border);
    background: var(--site-card-alt);
    box-shadow: 0 12px 28px rgba(3, 7, 17, 0.2);
    overflow: hidden;
}

.latest-card {
    position: relative;
    width: var(--latest-card-width);
    min-width: var(--latest-card-width);
    aspect-ratio: 2 / 3;
}

.latest-card img,
.artist-card img,
.artist .art-card > img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.latest-card img {
    height: 100%;
    aspect-ratio: auto;
}

.latest-card-clone {
    position: relative;
    width: var(--latest-card-width);
    min-width: var(--latest-card-width);
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    border: 1px solid var(--site-border);
    background: var(--site-card-alt);
    box-shadow: 0 12px 28px rgba(3, 7, 17, 0.2);
    overflow: hidden;
}

.latest-card-clone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-card-clone .like-btn {
    display: none;
}

.latest-card .artist-tag {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    justify-content: center;
    background: rgba(6, 11, 22, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.72rem;
    padding: 6px 10px;
    border-radius: 999px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin: 0;
    padding: 0;
    max-width: none;
}

.artist-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.artist-card:hover,
.video-card:hover,
.latest-card:hover {
    transform: translateY(-4px);
    border-color: var(--site-border-strong);
    box-shadow: 0 18px 32px rgba(1, 7, 18, 0.28);
}

.artist-card img {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
}

.artist-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--site-text);
}

.artist-meta,
.artist-copy {
    display: grid;
    gap: 4px;
}

.artist-copy small,
.artist-count,
.total,
.profile-info,
.helper-copy {
    color: var(--site-text-soft);
}

.artist-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin: 0;
}

.artist .art-card {
    padding: 0;
    position: relative;
}

.art-card.is-load-failed {
    display: none !important;
}

.artist .art-card > img {
    height: 100%;
    aspect-ratio: 0.82;
}

.pagination {
    margin: 24px 0 0;
}

.pagination li a {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--site-border);
    border-radius: 12px;
}

.pagination li a:hover,
.pagination li.active a {
    background: var(--site-accent-soft);
    border-color: var(--site-border-strong);
}

.modal {
    background: rgba(4, 8, 16, 0.9);
    backdrop-filter: blur(12px);
}

.modal-inner {
    border-radius: 24px;
    overflow: hidden;
}

.modal-content {
    border-radius: 18px;
    cursor: zoom-in;
    transform-origin: center center;
    transition: transform 0.16s ease, opacity 0.3s ease;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.modal-content.is-zoomed {
    cursor: grab;
}

.modal-content.is-dragging {
    cursor: grabbing;
}

.modal-btn,
.chat-modal-close {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 12, 22, 0.72);
    backdrop-filter: blur(10px);
}

#modal-go-artist {
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--site-border);
    color: var(--site-text);
}

.art-info {
    background: rgba(8, 13, 24, 0.84);
    border: 1px solid var(--site-border);
}

.video-page {
    padding-bottom: 0;
}

.video-hero-intro,
.video-catalog-shell {
    margin-bottom: 20px;
}

.video-catalog-shell {
    padding: 20px;
}

.video-grid {
    gap: 16px;
}

.video-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: start;
}

.video-card,
.video-title-hero,
.video-sidebar-card,
.custom-player,
.video-empty {
    background: linear-gradient(180deg, var(--site-card), var(--site-surface-strong));
    border-color: var(--site-border);
    border-radius: 26px;
}

.video-title-hero {
    margin-bottom: 22px;
}

.video-catalog-overlay {
    padding: 48px 16px 18px;
    background: linear-gradient(180deg, rgba(6, 12, 24, 0) 0%, rgba(6, 12, 24, 0.88) 76%, rgba(6, 12, 24, 0.98) 100%);
}

.video-catalog-title {
    font-size: 1.08rem;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0.01em;
}

.video-catalog-count,
.meta-pill {
    background: rgba(6, 12, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--site-text);
}

.video-title-heading {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    letter-spacing: -0.04em;
    line-height: 0.94;
    text-transform: none;
}

.video-title-meta-grid {
    gap: 12px;
}

.video-title-fact {
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.video-title-fact-label {
    color: var(--site-text-soft);
}

.video-watch-layout {
    gap: 20px;
}

.custom-player {
    overflow: hidden;
}

.video-sidebar-card {
    padding: 18px;
}

.video-comments-shell {
    margin-top: 20px;
    padding: 20px;
}

.video-comments-header {
    align-items: center;
}

.video-comment-form,
.video-comments-list {
    display: grid;
    gap: 14px;
}

.video-comment-form {
    margin-bottom: 18px;
}

.video-comment-input {
    width: 100%;
    min-height: 112px;
    resize: vertical;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.035);
    color: var(--site-text);
    font: inherit;
    box-sizing: border-box;
}

.video-comment-input:focus {
    outline: none;
    border-color: var(--site-border-strong);
    box-shadow: 0 0 0 3px rgba(138, 215, 255, 0.12);
}

.video-comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.video-comment-hint,
.video-comment-meta span {
    color: var(--site-text-soft);
    font-size: 0.9rem;
}

.video-comment-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.03);
}

.video-comment-avatar-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.video-comment-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.video-comment-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #061119;
    background: linear-gradient(135deg, var(--site-accent), var(--site-accent-strong));
}

.video-comment-body {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.video-comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.video-comment-text {
    color: var(--site-text);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

#video-comments-empty.hidden {
    display: none;
}

.episode-link {
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
}

.episode-link.active,
.episode-link:hover {
    border-color: var(--site-border-strong);
    background: rgba(138, 215, 255, 0.08);
}

.public-profile-shell {
    display: grid;
    gap: 20px;
}

.public-profile-hero {
    display: grid;
    gap: 18px;
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.public-profile-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    transform: scale(1.03);
}

.public-profile-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 11, 22, 0.4), rgba(6, 11, 22, 0.92));
}

.public-profile-hero > * {
    position: relative;
    z-index: 1;
}

.public-profile-identity {
    display: flex;
    gap: 18px;
    align-items: center;
}

.public-profile-avatar {
    width: 108px;
    height: 108px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.public-profile-copy {
    display: grid;
    gap: 8px;
}

.public-profile-copy h1 {
    margin: 0;
    text-align: left;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.96;
}

.public-profile-slug {
    color: var(--site-text-soft);
    font-size: 0.96rem;
}

.public-profile-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-profile-panel {
    padding: 20px;
}

.public-profile-panel h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.profile-mini-grid,
.thumb-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.profile-mini-grid a,
.thumb-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
}

.profile-list,
.guestbook-feed {
    display: grid;
    gap: 12px;
}

.guestbook-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.03);
}

.guestbook-card strong {
    font-size: 0.98rem;
}

.guestbook-card small,
.empty-copy {
    color: var(--site-text-soft);
}

.guestbook-card img {
    width: 100%;
    border-radius: 16px;
}

.text-area,
.text-input,
.select-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--site-text);
    padding: 12px 14px;
    font: inherit;
}

.text-area {
    min-height: 120px;
    resize: vertical;
}

.empty-state,
.no-results {
    display: grid;
    gap: 8px;
    justify-items: start;
    text-align: left;
    font-style: normal;
    color: var(--site-text-soft);
    border: 1px dashed var(--site-border);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.empty-state strong,
.no-results strong {
    color: var(--site-text);
}

.social-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.social-layout-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 860px;
    margin: 0 auto;
}

.social-column,
.social-sidebar {
    min-width: 0;
}

.social-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 20px;
}

.social-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.social-hero-panel,
.social-sidecard,
.social-composer,
.social-post-card {
    background: linear-gradient(180deg, var(--site-card), var(--site-surface-strong));
    border: 1px solid var(--site-border);
    box-shadow: var(--site-shadow);
    border-radius: var(--site-radius-xl);
}

.social-hero-panel {
    padding: 22px;
    display: grid;
    gap: 18px;
    align-content: start;
}

.social-hero-note {
    display: grid;
    gap: 10px;
}

.social-hero-note strong {
    font-size: 1.1rem;
}

.social-hero-note p {
    margin: 0;
    color: var(--site-text-soft);
    line-height: 1.65;
}

.social-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-composer,
.social-post-card {
    padding: 20px;
}

.social-composer + .social-post-feed {
    margin-top: 18px;
}

.social-composer-body,
.social-post-feed {
    display: grid;
    gap: 18px;
}

.social-composer-text {
    min-height: 170px;
    resize: vertical;
}

.social-composer-preview {
    position: relative;
    width: min(320px, 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.03);
}

.social-composer-preview-image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.social-composer-preview-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(6, 13, 25, 0.82);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.social-composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.social-composer-attach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--site-text);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-composer-attach:hover {
    transform: translateY(-1px);
    border-color: var(--site-accent);
    background: rgba(109, 237, 197, 0.08);
}

.social-composer-attach:disabled,
.social-composer-attach[disabled] {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    border-color: var(--site-border);
    background: rgba(255, 255, 255, 0.03);
}

.social-composer-attach svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-composer .btn:disabled,
.social-composer .btn[disabled] {
    background: #5f6675;
    color: rgba(255, 255, 255, 0.88);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
}

.social-post-head,
.social-post-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.social-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.social-post-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.social-post-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #061119;
    background: linear-gradient(135deg, var(--site-accent), var(--site-accent-strong));
    font-weight: 700;
}

.social-post-author-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.social-post-author-name {
    color: var(--site-text);
    text-decoration: none;
    font-weight: 700;
}

.social-post-date,
.social-comment-date {
    color: var(--site-text-soft);
    font-size: 0.85rem;
}

.social-post-text,
.social-comment-text {
    color: var(--site-text);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.social-post-media-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.social-post-media-grid-single {
    grid-template-columns: 1fr;
}

.social-post-media-grid-multi {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.social-post-image,
.social-post-video {
    width: 100%;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-post-image {
    display: block;
    max-height: 540px;
    object-fit: cover;
    cursor: zoom-in;
}

.social-post-video {
    display: block;
    max-height: 540px;
}

.social-post-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.social-post-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--site-text);
    padding: 8px 14px;
    font-size: 0.92rem;
}

.post-like-btn {
    cursor: pointer;
}

.post-like-btn.is-active {
    background: rgba(138, 215, 255, 0.14);
    border-color: var(--site-border-strong);
}

.social-post-comments {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.social-post-comments-list,
.social-comment-form {
    display: grid;
    gap: 12px;
}

.social-comment-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.social-comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.social-comment-author {
    font-weight: 700;
}

.social-comment-author a {
    text-decoration: none;
}

.social-comment-input {
    min-height: 86px;
}

.social-post-empty {
    min-height: 180px;
    align-content: center;
}

@media (max-width: 1180px) {
    .page-hero,
    .main-layout,
    .social-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-rail {
        position: static;
    }

    .chat-sidebar {
        min-height: 440px;
        max-height: 520px;
    }

    .public-profile-grid {
        grid-template-columns: 1fr;
    }

    .social-sidebar {
        position: static;
    }
}

@media (max-width: 900px) {
    .page-shell {
        width: min(100%, calc(100% - 20px));
        margin: 12px auto 28px;
    }

    .page-hero,
    .section-panel,
    .video-catalog-shell,
    .public-profile-panel,
    .public-profile-hero,
    .social-composer,
    .social-post-card {
        padding: 18px;
        border-radius: 24px;
    }

    .slider {
        min-height: 280px;
    }

    .page-hero.landing-hero .slider,
    .page-hero.landing-hero .slider-shell .slider {
        height: 340px;
        min-height: 340px;
    }

    .page-hero.landing-hero .slide img.character {
        right: -18px;
        bottom: -14px;
        height: 156%;
    }

    .public-profile-identity {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .site-topbar {
        padding: 14px;
        border-radius: 18px;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav-link,
    .ghost-link,
    .hero-link,
    .stat-link,
    .action-link,
    #vk-login-btn {
        padding: 9px 13px;
        font-size: 0.88rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.7rem);
    }

    .page-hero {
        gap: 16px;
    }

    .slider {
        min-height: 220px;
    }

    .page-hero.landing-hero .slider,
    .page-hero.landing-hero .slider-shell .slider {
        height: 280px;
        min-height: 280px;
    }

    .page-hero.landing-hero .slide-content {
        max-width: 62%;
    }

    .page-hero.landing-hero .slide img.character {
        right: -24px;
        bottom: -8px;
        height: 138%;
    }

    .slide {
        padding: 18px;
        align-items: end;
    }

    .slide-content {
        max-width: 68%;
    }

    .slide img.character {
        right: -42px;
        bottom: -24px;
        height: 120%;
    }

    .grid,
    .artist-grid,
    .video-catalog-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    .latest-grid {
        --latest-gap: 12px;
        --latest-card-width: clamp(138px, 24vw, 178px);
    }

    .artist-card,
    .artist .art-card {
        max-width: none !important;
        width: auto !important;
        margin: 0 !important;
        padding: 10px !important;
        aspect-ratio: auto !important;
    }

    .artist .art-card {
        padding: 0 !important;
    }

    .artist .art-card > img {
        height: auto !important;
        aspect-ratio: 0.82 !important;
    }

    .section-header {
        align-items: start;
        flex-direction: column;
    }

    .chat-sidebar {
        display: none;
    }

    .chat-fab {
        display: flex;
        position: fixed;
        right: 16px;
        bottom: 16px;
        width: 58px;
        height: 58px;
        border-radius: 20px;
        border: 1px solid var(--site-border);
        background: var(--site-surface);
        box-shadow: 0 18px 40px rgba(3, 7, 17, 0.4);
        backdrop-filter: blur(16px);
        align-items: center;
        justify-content: center;
        z-index: 1500;
    }

    .chat-fab img {
        width: 24px;
        height: 24px;
    }

    .chat-modal {
        background: rgba(4, 8, 16, 0.78);
        backdrop-filter: blur(10px);
    }

    .chat-modal-inner {
        width: min(100%, 520px);
        background: var(--site-surface-strong);
        border: 1px solid var(--site-border);
        border-radius: 24px;
    }

    .chat-modal-header {
        border-color: var(--site-border);
    }

    .video-title-hero,
    .video-watch-layout,
    .video-title-meta-grid,
    .public-profile-grid,
    .social-composer-grid,
    .social-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .grid,
    .artist-grid,
    .video-catalog-grid,
    .profile-mini-grid,
    .thumb-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .latest-grid {
        --latest-card-width: clamp(132px, 52vw, 168px);
    }

    .latest-card {
        width: var(--latest-card-width);
        min-width: var(--latest-card-width);
    }

    .latest-card-clone {
        width: var(--latest-card-width);
        min-width: var(--latest-card-width);
    }

    .video-comment-card {
        grid-template-columns: 1fr;
    }

    .video-comment-avatar-wrap {
        justify-content: flex-start;
    }

    .video-comment-actions {
        align-items: stretch;
    }

    .public-profile-avatar {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }
}
