/* ==========================================================================
   PHOTO.RAVENCAVE.RU — OFFICIAL PHOTO ARCHIVE
   Exact Match to Raven Cave Theme & Architecture
   ========================================================================== */

:root {
    --bg-dark: #0b0813;
    --card-bg: rgba(14, 10, 30, 0.95);
    --card-border: rgba(255, 255, 255, 0.15);
    --color-accent: #00f0ff;
    --color-accent-2: #bd00ff;
    --primary-accent: #00b4d8;
    --purple-accent: #8e44b3;
    --violet-glow: #6366f1;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-radius: 14px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    position: relative;
    padding-bottom: 0;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, #1e1346 0%, #0b0813 85%);
    z-index: -10;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* --- Site Header with DJ Comics Image from ravencave.ru --- */
.site-header {
    position: relative;
    border-bottom: none;
    padding: 55px 0 65px;
    background-color: #0b0813;
    background-image: url('/static/dj-comics-header-desktop.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin-bottom: 30px;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 8, 19, 0.45) 0%, rgba(11, 8, 19, 0.75) 60%, #0b0813 100%);
    z-index: 1;
    pointer-events: none;
}

.site-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 4px);
    pointer-events: none;
    z-index: 2;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 18px;
}

.custom-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    animation: logo-spin-slow 30s linear infinite;
    display: block;
}

@keyframes logo-spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.site-description {
    font-size: 11px;
    color: var(--color-accent);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.15em;
    margin-top: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.12);
    transition: all 0.25s ease;
}

.header-nav-link:hover {
    color: #ffffff;
    background: rgba(0, 240, 255, 0.22);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-1px);
}

.header-nav-link.nav-blog {
    color: var(--color-accent-2);
    border-color: rgba(189, 0, 255, 0.35);
    background: rgba(189, 0, 255, 0.08);
    box-shadow: 0 0 12px rgba(189, 0, 255, 0.12);
}

.header-nav-link.nav-blog:hover {
    color: #ffffff;
    background: rgba(189, 0, 255, 0.22);
    border-color: var(--color-accent-2);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.4);
}

/* --- Subwave Player Card --- */
.subwave-player-card {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, rgba(20, 16, 41, 0.9), rgba(11, 8, 25, 0.95));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.12);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.subwave-player-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(189, 0, 255, 0.4), rgba(0, 240, 255, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.subwave-visualizer-container {
    width: 90px;
    height: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
}

.subwave-vis-bar {
    width: 4px;
    height: 20%;
    background: linear-gradient(to top, var(--color-accent-2), var(--color-accent));
    border-radius: 2px;
    transition: height 0.15s ease;
}

.subwave-playing .subwave-vis-bar {
    animation: subwave-bounce 1.2s ease-in-out infinite alternate;
}

.subwave-playing .subwave-vis-bar:nth-child(1) { animation-delay: 0.1s; animation-duration: 1.0s; }
.subwave-playing .subwave-vis-bar:nth-child(2) { animation-delay: 0.3s; animation-duration: 0.8s; }
.subwave-playing .subwave-vis-bar:nth-child(3) { animation-delay: 0.5s; animation-duration: 1.2s; }
.subwave-playing .subwave-vis-bar:nth-child(4) { animation-delay: 0.2s; animation-duration: 0.9s; }
.subwave-playing .subwave-vis-bar:nth-child(5) { animation-delay: 0.4s; animation-duration: 1.1s; }
.subwave-playing .subwave-vis-bar:nth-child(6) { animation-delay: 0.7s; animation-duration: 0.7s; }
.subwave-playing .subwave-vis-bar:nth-child(7) { animation-delay: 0.1s; animation-duration: 1.3s; }
.subwave-playing .subwave-vis-bar:nth-child(8) { animation-delay: 0.6s; animation-duration: 1.0s; }
.subwave-playing .subwave-vis-bar:nth-child(9) { animation-delay: 0.3s; animation-duration: 0.8s; }
.subwave-playing .subwave-vis-bar:nth-child(10) { animation-delay: 0.8s; animation-duration: 1.2s; }

@keyframes subwave-bounce {
    0% { height: 15%; }
    100% { height: 95%; }
}

.subwave-player-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
}

.subwave-track-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.subwave-track-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.subwave-track-artist {
    font-size: 12px;
    color: var(--color-accent);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subwave-controls-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.subwave-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    flex-shrink: 0;
}

.subwave-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
}

.subwave-play-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.subwave-volume-container {
    display: flex;
    align-items: center;
    width: 90px;
}

.subwave-volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.subwave-dj-avatar-container {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subwave-player-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform-origin: center center;
    transition: transform 0.5s ease;
}

.subwave-playing .subwave-player-logo {
    animation: spin-disk 15s linear infinite !important;
}

@keyframes spin-disk {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.subwave-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.subwave-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

.subwave-playing .subwave-status-dot {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: subwave-pulse 1.5s infinite alternate;
}

@keyframes subwave-pulse {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* --- Photo Archive Sub-Banner --- */
.photo-header-banner {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, rgba(20, 16, 41, 0.7), rgba(11, 8, 25, 0.8));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.photo-banner-text {
    flex: 1;
    min-width: 250px;
}

.photo-banner-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 4px;
}

.photo-banner-sub {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.photo-stats-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--color-accent);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* --- RSS News Module --- */
.rss-news-module {
    border: 1px dashed rgba(0, 180, 216, 0.3);
    background: rgba(15, 12, 35, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 35px;
}

.rss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.rss-item-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rss-item-placeholder:hover {
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.12);
}

.rss-tag {
    font-size: 10px;
    color: var(--primary-accent);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rss-title {
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
    margin: 8px 0 6px 0;
    line-height: 1.35;
}

.rss-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.btn-blog-action {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple-accent), var(--violet-glow));
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 10px 22px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(142, 68, 179, 0.35);
}

.btn-blog-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 179, 0.55);
}

@media (max-width: 768px) {
    .site-header {
        padding: 35px 0 45px;
        background-image: url('/static/dj-comics-header-mobile.png');
    }

    .subwave-player-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px 16px;
    }

    .subwave-visualizer-container {
        width: 100%;
        height: 28px;
        justify-content: center;
        gap: 6px;
    }

    .subwave-player-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        width: 100%;
    }

    .subwave-track-details {
        align-items: center;
        width: 100%;
    }

    .subwave-track-title {
        font-size: 15px;
    }

    .subwave-controls-row {
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    .subwave-volume-container {
        width: 80px;
    }

    .subwave-status-badge {
        align-self: center;
    }
}

/* --- Section Top Bar --- */
.section-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-icon {
    font-size: 22px;
}

.search-box-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.search-icon-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 10px 38px 10px 38px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
}

/* --- View Sections --- */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}
.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Albums Grid (Cosmobase Card Style) --- */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.album-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    position: relative;
}

.album-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.2);
}

.album-card-img-box {
    position: relative;
    width: 100%;
    height: 220px;
    background: #140e28;
    overflow: hidden;
}

.album-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.album-card:hover .album-card-img {
    transform: scale(1.05);
}

.album-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(11,8,19,0.85) 100%);
}

.album-badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(11, 8, 19, 0.8);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.album-photos-count-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(11, 8, 19, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.album-card-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.album-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.album-author-link {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

.album-author-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 0 8px var(--color-accent);
}

.badge-tag-author {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #ffffff;
}

.badge-tag-author a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.badge-tag-author a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.album-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-open-album {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.03em;
}

.btn-card-yandex {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}
.btn-card-yandex:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Skeletons */
.album-skeleton-card {
    height: 340px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
}

.no-results-box {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.no-results-emoji {
    font-size: 44px;
    margin-bottom: 12px;
}

/* --- ALBUM DETAIL (GALLERY) --- */
.album-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 24px 28px;
    margin-bottom: 30px;
}

.detail-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-back:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(0, 240, 255, 0.1);
}

.detail-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-action:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.btn-yandex-cloud {
    color: var(--color-accent);
    border-color: rgba(0, 240, 255, 0.3);
}
.btn-yandex-cloud:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.detail-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 12px;
}

.detail-tags-row {
    display: flex;
    gap: 8px;
}

.badge-tag {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--color-accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
}

.badge-tag-alt {
    background: rgba(189, 0, 255, 0.08);
    border-color: rgba(189, 0, 255, 0.25);
    color: var(--color-accent-2);
}

/* Photos Grid */
.photos-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.photo-cell {
    position: relative;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
    background: #140e28;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-cell:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.2);
}

.photo-cell-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.photo-cell:hover .photo-cell-img {
    transform: scale(1.05);
}

.photo-cell-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 8, 19, 0.35);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.photo-cell:hover .photo-cell-overlay {
    opacity: 1;
}

.photo-cell-zoom {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.photos-loading-box {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 10, 0.95);
    backdrop-filter: blur(16px);
    z-index: -1;
}

.lightbox-toolbar {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: rgba(20, 14, 40, 0.8);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    z-index: 10;
}

.lightbox-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
}

.lightbox-filename {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 10px;
}

.lightbox-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lightbox-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.lightbox-btn.close-btn:hover {
    border-color: #ff0055;
    color: #ff0055;
}

.lightbox-content {
    flex: 1;
    width: 100%;
    max-width: 1300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.lightbox-nav-btn {
    background: rgba(20, 14, 40, 0.7);
    border: 1px solid var(--card-border);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    flex-shrink: 0;
}
.lightbox-nav-btn:hover {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.lightbox-image-container {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-spinner {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}
.lightbox-spinner.active {
    display: block;
}

.lightbox-footer-hint {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* --- SITE FOOTER EXACTLY FROM RAVENCAVE.RU --- */
.site-footer {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #060410;
    margin-top: 60px;
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
}

.footer-body {
    padding: 32px 30px 0;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.25s ease;
}

.footer-social-links a:hover {
    color: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
    transform: translateY(-1px);
}

/* Jedi Council Hero Banner */
.jedi-council-banner {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #06020f;
}

.jedi-council-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    display: block;
    opacity: 0.45;
    transition: opacity 0.6s ease, transform 0.8s ease;
    transform: scale(1.03);
}

.jedi-council-banner:hover .jedi-council-banner__img {
    opacity: 0.72;
    transform: scale(1.0);
}

.jedi-council-banner__scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.18) 2px, rgba(0, 0, 0, 0.18) 4px);
    pointer-events: none;
    z-index: 2;
}

.jedi-council-banner__fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, #060410 0%, rgba(6, 4, 16, 0.7) 50%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

.jedi-council-banner__top-fade {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 35%;
    background: linear-gradient(to bottom, rgba(6, 4, 16, 0.6) 0%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

.jedi-council-banner__text {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 4;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.jedi-council-banner__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
    text-shadow: 0 0 12px var(--color-accent);
}

.jedi-council-banner__subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.jedi-council-banner:hover .jedi-council-banner__title,
.jedi-council-banner:hover .jedi-council-banner__subtitle {
    opacity: 1;
    transform: translateY(0);
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 12px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.5;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(20, 14, 40, 0.95);
    border: 1px solid var(--color-accent);
    color: #fff;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
