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

/* ── Theme variables ── */

:root {
    --bg:      #fafafa;
    --surface: #fff;
    --text:    #111;
    --muted:   #777;
    --border:  #e5e5e5;
    --desc-border: #ddd;
    --desc-text:   #333;
    --footer-text: #aaa;
    --accent:  #1db954;
    --font:    'Georgia', serif;
    --font-ui: system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:      #0e0e0e;
        --surface: #1a1a1a;
        --text:    #f0f0f0;
        --muted:   #888;
        --border:  #222;
        --desc-border: #333;
        --desc-text:   #ccc;
        --footer-text: #444;
    }
}

[data-theme="light"] {
    --bg:      #fafafa;
    --surface: #fff;
    --text:    #111;
    --muted:   #777;
    --border:  #e5e5e5;
    --desc-border: #ddd;
    --desc-text:   #333;
    --footer-text: #aaa;
}

[data-theme="dark"] {
    --bg:      #0e0e0e;
    --surface: #1a1a1a;
    --text:    #f0f0f0;
    --muted:   #888;
    --border:  #222;
    --desc-border: #333;
    --desc-text:   #ccc;
    --footer-text: #444;
}

/* ── Base ── */

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.6;
    transition: background 0.2s, color 0.2s;
}

body {
    max-width: 720px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left:  1px solid var(--border);
    border-right: 1px solid var(--border);
}

/* ════════════════════════════════
   HEADER
   ════════════════════════════════ */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.75rem;
    border-bottom: 1px solid var(--border);
}

/* ── Logo (left) ── */

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text);
    transition: opacity 0.15s;
}

.logo:hover { opacity: 0.7; }

.logo svg {
    flex-shrink: 0;
    color: var(--text);
}

.logo-text {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    white-space: nowrap;
}

/* ── Nav (right) ── */

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

/* ════════════════════════════════
   ARCHYVAS BUTTON + DROPDOWN
   ════════════════════════════════ */

.nav-archyvas {
    position: relative;
}

.btn-archyvas {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: transparent;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
    user-select: none;
}

.btn-archyvas:hover,
.btn-archyvas.is-active {
    background: var(--border);
    border-color: var(--muted);
}

.btn-archyvas-icon    { display: none; }
.menu-item-archyvas   { display: none; }
.menu-divider-archyvas { display: none; }

.btn-chevron {
    width: 10px;
    height: 6px;
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.nav-archyvas:hover .btn-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.archyvas-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.07);
    z-index: 300;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.nav-archyvas:hover .archyvas-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.arch-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--text);
    transition: background 0.1s;
}

.arch-item:hover { background: var(--border); }

.arch-date {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--muted);
    min-width: 2.8rem;
    flex-shrink: 0;
}

.arch-title {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arch-footer {
    border-top: 1px solid var(--border);
    padding: 0.5rem 1rem;
}

.arch-footer a {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

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

/* ════════════════════════════════
   HAMBURGER BUTTON + DROPDOWN
   ════════════════════════════════ */

.btn-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s;
}

.btn-hamburger:hover { background: var(--border); }

/* Dropdown */
.hamburger-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.07);
    z-index: 300;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    padding-top: 0.35rem;
}

.hamburger-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-item {
    display: block;
    padding: 0.55rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.1s, color 0.1s;
    white-space: nowrap;
}

.menu-item:hover     { background: var(--border); }
.menu-item.is-active { color: var(--accent); }

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.35rem 0;
}

/* ── Theme switcher ── */

.theme-switcher {
    display: flex;
    gap: 0.3rem;
    padding: 0.45rem 0.75rem 0.6rem;
}

.theme-opt {
    flex: 1;
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.02em;
    padding: 0.3rem 0;
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.theme-opt:hover  { color: var(--text); border-color: var(--muted); }
.theme-opt.active { color: var(--accent); border-color: var(--accent); background: transparent; }

/* ── Main ── */

main {
    flex: 1;
    padding: 3rem 2rem;
}

.date-label {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.album-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.artist-name {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.album-meta {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 2rem;
    opacity: 0.7;
}

/* ── Spotify embed ── */

.spotify-embed {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.spotify-embed iframe {
    display: block;
    border-radius: 12px;
}

/* ── Description ── */

.description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--desc-text);
    border-left: 2px solid var(--desc-border);
    padding-left: 1.25rem;
}

/* ── Songs ── */

.songs {
    margin-top: 2rem;
}

.songs-header {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.songs-list {
    list-style: decimal;
    padding-left: 1.25rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* ── Empty state ── */

.empty-state {
    color: var(--muted);
    font-family: var(--font-ui);
    margin-top: 2rem;
}

.empty-state a {
    color: var(--accent);
    text-decoration: none;
}

/* ── Archive ── */

.page-heading {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.archive-month {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 0.25rem;
}

.archive-month:first-of-type { margin-top: 0; }

.archive-list {
    list-style: none;
}

.archive-list li {
    border-bottom: 1px solid var(--border);
}

.archive-list a {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
    padding: 0.45rem 0;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    transition: color 0.15s;
}

.archive-list a:hover { color: var(--accent); }

.archive-date {
    color: var(--muted);
    font-size: 0.8rem;
    white-space: nowrap;
    min-width: 6rem;
}

.archive-album { font-weight: 600; }

.archive-artist {
    color: var(--muted);
    font-size: 0.85rem;
    margin-left: auto;
}

/* ── Footer ── */

footer {
    padding: 1.5rem 2rem;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--footer-text);
    border-top: 1px solid var(--border);
}

.disclaimer {
    margin-top: 0.75rem;
    font-size: 0.68rem;
    line-height: 1.6;
    color: var(--footer-text);
    opacity: 0.7;
}

/* ── Comments ── */

.comment-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.comment {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    font-family: var(--font-ui);
}

.comment-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.comment-time {
    font-size: 0.72rem;
    color: var(--muted);
}

.comment-body {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--desc-text);
}

.comment-empty {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.comment-delete-form { margin-left: auto; }

.comment-delete {
    background: none;
    border: none;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.15s;
}

.comment-delete:hover { color: #c0392b; }

/* ── Comment form ── */

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.comment-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.comment-field label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.comment-field input,
.comment-field textarea {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    width: 100%;
    transition: border-color 0.15s;
    resize: vertical;
}

.comment-field input:focus,
.comment-field textarea:focus {
    outline: none;
    border-color: var(--muted);
}

.comment-submit {
    align-self: flex-start;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--surface);
    background: var(--text);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: opacity 0.15s;
}

.comment-submit:hover { opacity: 0.8; }

/* ── Static pages ── */

.page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--desc-text);
}

.page-content p { margin-bottom: 1rem; }

/* ── Responsive ── */

@media (max-width: 600px) {
    body           { border: none; }
    header         { padding: 0.75rem 1.1rem; }
    main           { padding: 2rem 1.25rem; }
    .logo-text     { font-size: 0.78rem; }
    .album-title   { font-size: 1.6rem; }
    .archive-artist { display: none; }
    .nav-archyvas          { display: none; }
    .menu-item-archyvas    { display: block; }
    .menu-divider-archyvas { display: block; }
}
