:root {
    --bg: #0f1020;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-dark: rgba(20, 20, 36, 0.78);
    --primary: #7c4dff;
    --primary-strong: #5e35b1;
    --accent: #ffca28;
    --text: #171827;
    --muted: #6f7285;
    --shadow: 0 18px 45px rgba(20, 20, 35, 0.22);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 15%, rgba(124, 77, 255, 0.30), transparent 30rem),
        radial-gradient(circle at 85% 5%, rgba(255, 202, 40, 0.24), transparent 28rem),
        linear-gradient(135deg, #f7f4ff 0%, #eef3ff 45%, #fff8e1 100%);
}

a { color: inherit; }
img, video { display: block; max-width: 100%; }

.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px clamp(18px, 4vw, 52px);
    color: #fff;
}
.topbar--solid {
    position: sticky;
    color: var(--text);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 4px 24px rgba(17, 17, 34, 0.08);
}
.brand {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.17);
    transition: transform .2s ease, background .2s ease;
}
.nav a:hover, .nav a.active { transform: translateY(-2px); background: rgba(124, 77, 255, 0.18); }

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 110px 18px 56px;
    color: #fff;
    background:
        linear-gradient(rgba(10, 10, 22, .46), rgba(10, 10, 22, .64)),
        url('../../photos/photo16.07.2025/potashnikov_IMG05316.jpg') center/cover fixed;
}
.hero__content { max-width: 760px; padding: clamp(28px, 6vw, 64px); text-align: center; background: var(--surface-dark); color: #fff; }
.eyebrow { margin: 0 0 10px; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.hero .eyebrow { color: var(--accent); }
h1 { margin: 0; font-size: clamp(2.5rem, 11vw, 8rem); line-height: .9; letter-spacing: -.08em; }
h2 { margin: 0; font-size: clamp(1.45rem, 4vw, 2.25rem); }
.hero__text, .lead { color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.25rem); line-height: 1.6; }
.hero__text { color: rgba(255,255,255,.86); }
.hero__actions, .page-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }

.button, .download-link, .delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}
.button--primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); box-shadow: 0 12px 28px rgba(94, 53, 177, .32); }
.button--secondary { color: #fff; border: 1px solid rgba(255,255,255,.45); }
.download-link { min-height: 38px; color: var(--primary-strong); background: rgba(124, 77, 255, .12); }
.delete-button { min-height: 38px; color: #b42318; background: rgba(244, 67, 54, .12); font-family: inherit; font-size: 1rem; }
.material-card { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.section { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: clamp(36px, 7vw, 76px) 0; }
.section--compact { text-align: center; }
.stats-grid, .album-grid, .media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 28px; }
.stat-card, .album-card, .media-card, .empty { background: var(--surface); text-decoration: none; }
.stat-card { padding: 28px; }
.stat-card__number { display: block; font-size: 3rem; font-weight: 800; color: var(--primary-strong); }
.stat-card__label { color: var(--muted); font-weight: 700; }
.album-card { transition: transform .2s ease, box-shadow .2s ease; }
.album-card:hover, .media-card:hover { transform: translateY(-4px); }
.album-card__cover, .media-card__preview { position: relative; width: 100%; aspect-ratio: 16/10; border: 0; padding: 0; background: #26243b; overflow: hidden; cursor: pointer; }
.album-card__cover img, .album-card__cover video, .media-card__preview img, .media-card__preview video { width: 100%; height: 100%; object-fit: cover; }
.album-card__cover span { display: grid; place-items: center; height: 100%; color: #fff; font-size: 4rem; }
.album-card__body, .media-card__body { padding: 16px; }
.album-card__body p, .media-card__body p { margin: 8px 0 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.media-card__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.media-card__actions form { margin: 0; }
.notice { margin: 0 0 18px; padding: 14px 18px; border-radius: 18px; font-weight: 800; }
.notice--success { color: #027a48; background: rgba(18, 183, 106, .14); }
.notice--error { color: #b42318; background: rgba(244, 67, 54, .14); }
.play-badge { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: rgba(124,77,255,.88); box-shadow: var(--shadow); }
.page-head { justify-content: space-between; align-items: flex-end; margin-bottom: 26px; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--primary-strong); font-weight: 800; text-decoration: none; }
.empty { padding: 28px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 20px; background: rgba(10, 10, 18, .86); backdrop-filter: blur(10px); }
.lightbox.is-open { display: grid; }
.lightbox__content img, .lightbox__content video { max-width: min(1100px, 94vw); max-height: 84vh; border-radius: 18px; box-shadow: var(--shadow); background: #000; }
.lightbox__close { position: fixed; top: 18px; right: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.18); font-size: 2rem; cursor: pointer; }

@media (max-width: 680px) {
    .topbar { align-items: flex-start; flex-direction: column; padding: 14px 16px; }
    .topbar--solid { position: relative; }
    .nav { width: 100%; justify-content: flex-start; }
    .nav a { padding: 9px 13px; }
    .hero { background-attachment: scroll; }
    .hero__actions, .page-head { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .media-card__body { align-items: stretch; flex-direction: column; }
    .download-link, .delete-button, .media-card__actions, .media-card__actions form { width: 100%; }
}
