:root {
    --bg-light: #f6f9fc;
    --primary: #10B981; /* Emerald from your gradient */
    --secondary: #3B82F6; /* Blue from your gradient */
    --accent: #E000FF; /* Fuchsia for pop */
    --gold: #E6A800; /* Amber/Gold for nostalgia */
    --teal-deep: #003B42; /* Transformative Teal for core text */
    --text-dark: #2D3436;
    --text-muted: #636E72;
    --glass: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(0, 0, 0, 0.06);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Aurora Light Mesh Gradient (по вашему запросу) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(140% 120% at 10% 10%, rgba(16, 185, 129, 0.14), transparent 45%), 
        radial-gradient(120% 100% at 90% 0%, rgba(59, 130, 246, 0.14), transparent 40%), 
        linear-gradient(120deg, rgb(248, 251, 255) 0%, rgb(244, 247, 255) 40%, rgb(249, 255, 251) 100%);
    z-index: -2;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--teal-deep);
}

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

/* Header & Burger */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 59, 66, 0.1);
    box-shadow: 0 10px 40px rgba(0, 59, 66, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--teal-deep);
}

.logo span {
    color: var(--gold);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background: var(--teal-deep);
    border-radius: 10px;
    transition: var(--transition);
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--secondary);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('reunion_bg.jpg') no-repeat center center/cover;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), var(--bg-light));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

#hero h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    color: var(--teal-deep);
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

#hero .subtitle {
    font-size: 1.2rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 50px;
    font-weight: 800;
}

/* Timer */
.countdown-container {
    margin-bottom: 50px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.time-block {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    min-width: 100px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.time-block span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal-deep);
}

.time-block label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--secondary);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: none !important;
    outline: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
    filter: brightness(1.1);
}

.cta-btn:active {
    transform: translateY(0) scale(0.96);
}

.cta-btn.small {
    padding: 10px 25px;
    font-size: 0.75rem;
}

.cta-btn:active {
    transform: translateY(0) scale(0.98);
}

.cta-btn.small {
    padding: 10px 25px;
    font-size: 0.8rem;
}

/* Vote Widget */
.vote-widget {
    max-width: 650px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 20px;
}

.vote-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--teal-deep) !important;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.search-input-wrapper {
    display: flex;
    flex-direction: row; /* Принудительно в ряд */
    gap: 10px;
    width: 100%;
    align-items: center; /* Центровка по вертикали */
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 0 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 70px; /* Увеличим высоту для комфорта */
    box-sizing: border-box;
}

.search-input-wrapper input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 0 20px !important;
    color: var(--teal-deep) !important;
    outline: none !important;
    font-size: 1.1rem !important;
    height: 50px !important;
    margin: 0 !important; /* Убираем все отступы */
}

.search-input-wrapper .cta-btn {
    height: 50px !important;
    border-radius: 25px !important;
    margin: 0 !important; /* Убираем все отступы */
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.vote-btn {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--teal-deep);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.vote-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    border: none;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.vote-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.vote-btn.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.vote-btn .emoji {
    font-size: 1.2rem;
}

.vote-btn .btn-text {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

.vote-btn .count {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.vote-btn.active .count {
    color: white;
}

/* Section styling updates */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -40px auto 50px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Info Grid & Modern Cards */
/* Info Grid & Spotlight Glass Cards (AI Series) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-card {
    position: relative;
    height: 520px;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background-color: #000;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.6s;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card:nth-child(1) { background-image: url('img/custom/card_date.png'); }
.info-card:nth-child(2) { background-image: url('img/custom/card_location.png'); }
.info-card:nth-child(3) { background-image: url('img/custom/card_dress.png'); }

.info-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 90px rgba(0, 59, 66, 0.3);
}

/* The Matte Glass Plate */
.glass-plate {
    position: relative;
    z-index: 5;
    background: rgba(15, 25, 35, 0.4); /* Darker, more solid glass */
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 35px 30px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.info-card:hover .glass-plate {
    background: rgba(15, 25, 35, 0.5);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Spotlight Glow Layer */
.info-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(
        700px circle at var(--x, 50%) var(--y, 50%),
        rgba(59, 130, 246, 0.4),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.info-card:hover::after {
    opacity: 1;
}

.info-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff; /* White for maximum contrast */
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.info-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9); /* High contrast light text */
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.glass-plate p {
    margin-bottom: 20px;
}

.map-link {
    align-self: flex-start;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: inline-block;
}

.map-link:hover {
    background: #fff;
    transform: scale(1.05);
}


/* Nostalgia Slider */
.comparison-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.comparison-card {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 60px 40px;
    margin-bottom: 30px;
}

.card-side .year {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.card-side p {
    font-size: 1.5rem;
    font-style: italic;
}

.divider {
    width: 1px;
    height: 100px;
    background: var(--glass-border);
}

.shuffle-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.shuffle-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* RSVP Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--teal-deep);
    font-family: inherit;
    font-size: 1rem;
    height: 50px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(0, 68, 68, 0.5);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.25);
}

textarea {
    height: 120px;
    resize: none;
}

.submit-btn:hover {
    background: var(--primary-light);
    letter-spacing: 1px;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 30px;
}

/* Vignette Interactive Section */
#vignette {
    padding: 100px 0;
    overflow: hidden;
}

.vignette-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    line-height: 0;
}

.vignette-main-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.face-hotspot {
    position: absolute;
    width: 7.5%;
    /* Approximate width of oval */
    aspect-ratio: 1 / 1.35;
    /* Portrait oval aspect ratio */
    border-radius: 50% / 60%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.5s ease;
    overflow: hidden;
}

.face-hotspot:hover {
    transform: scale(1.15);
    z-index: 100;
    box-shadow: 0 0 30px var(--primary);
    border: 2px solid var(--primary);
}

.face-hotspot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.face-hotspot:hover::after {
    opacity: 1;
}

/* Individual Face Images Mapping */
/* Dynamic Background for Hotspots */
.face-hotspot:hover::after {
    background-image: var(--face-img);
}

/* Vignette Admin Editor Styles */
.admin-controls-wrapper {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 800px;
}

.controls-info {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.controls-actions {
    display: flex;
    gap: 15px;
}

.face-hotspot.edit-mode {
    border: 2px dashed #fff;
    background: rgba(212, 175, 55, 0.2);
    cursor: move;
}

.face-hotspot.edit-mode::before {
    content: attr(data-id);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: var(--bg-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.face-hotspot.edit-mode:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.4);
}

.face-hotspot.edit-mode .coords-tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 1s ease forwards;
}

/* Mobile Responsive */
/* Player Section */
#playlist {
    background: linear-gradient(to bottom, var(--bg-dark), #0f172a);
}

.player-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    padding: 50px;
    align-items: center;
}

.player-now-playing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.album-art {
    width: 280px;
    height: 280px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visualizer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    opacity: 0;
    transition: var(--transition);
}

.visualizer.active {
    opacity: 1;
}

.visualizer span {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}

@keyframes barBounce {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 35px;
    }
}

.visualizer.active span {
    animation: barBounce 0.8s ease-in-out infinite;
}

.visualizer span:nth-child(2) {
    animation-delay: 0.1s;
}

.visualizer span:nth-child(3) {
    animation-delay: 0.2s;
}

.visualizer span:nth-child(4) {
    animation-delay: 0.3s;
}

.visualizer span:nth-child(5) {
    animation-delay: 0.4s;
}

.track-info {
    text-align: center;
    width: 100%;
}

.track-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.track-info p {
    color: var(--text-muted);
}

.progress-container {
    width: 100%;
    height: 10px;
    background: rgba(0, 59, 66, 0.08);
    border-radius: 20px;
    margin: 30px 0;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 20px;
    position: relative;
    transition: width 0.1s linear;
}

/* Floating Seek Handle */
.progress-bar::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.progress-container:hover .progress-bar::after {
    transform: translateY(-50%) scale(1.2);
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.p-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.p-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.play-btn {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
}

/* Track List */
.track-list {
    height: 400px;
    overflow-y: auto;
    padding-right: 15px;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.track-item.active {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.track-item.active .t-name {
    color: var(--primary);
}

.t-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vote-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.track-vote-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    border-radius: 50%;
    line-height: 1;
}

.track-vote-btn:hover {
    transform: scale(1.3) rotate(15deg);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.track-vote-btn.loading {
    animation: rotate 1s linear infinite;
    opacity: 0.5;
}

.track-vote-btn:disabled,
.track-vote-btn.voted {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(1);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.t-main {
    display: flex;
    flex-direction: column;
}

.t-name {
    font-weight: 600;
}

.t-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.t-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Custom Scrollbar */
.track-list::-webkit-scrollbar {
    width: 5px;
}

.track-list::-webkit-scrollbar-track {
    background: transparent;
}

.track-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

/* Music Search Styles */
.music-search-container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    border-radius: 20px;
}

.search-input-wrapper {
    display: flex;
    gap: 15px;
}

.search-input-wrapper input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.search-input-wrapper button {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 0 30px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.search-input-wrapper button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.search-results-list {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.search-results-list.hidden {
    display: none;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sr-info {
    display: flex;
    flex-direction: column;
}

.sr-title {
    font-weight: 600;
    color: var(--text-light);
}

.sr-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.add-track-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.add-track-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.add-track-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Wish Wall Section */
#wish-wall {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-dark), rgba(212, 175, 55, 0.05));
    border-top: 1px solid var(--glass-border);
}

.wall-header {
    text-align: center;
    margin-bottom: 50px;
}

.cta-btn.small {
    padding: 12px 30px;
    font-size: 0.9rem;
    margin-top: 20px;
}

.wish-form-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.wish-form-wrapper.hidden {
    display: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cancel-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.cancel-btn:hover {
    border-color: var(--text-light);
    color: var(--text-light);
}

/* Wall Grid */
.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.wish-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: var(--transition);
    animation: fadeIn 0.8s ease forwards;
    position: relative;
    overflow: hidden;
}

.wish-card::before {
    content: '“';
    position: absolute;
    top: -10px;
    right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 100px;
    color: rgba(212, 175, 55, 0.1);
}

.wish-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wish-card .card-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.wish-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 15px;
}

.wish-card .author {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.wish-card .date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Mobile Adaptation & Burger Logic */
@media (max-width: 992px) {
    #hero h1 { font-size: 3.5rem; }
    .player-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { padding: 15px 0; }
    
    .burger-menu { display: flex; }
    
    .burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    nav.active { right: 0; }

    nav a {
        margin: 20px 0;
        font-size: 1.5rem;
        color: var(--teal-deep);
    }

    #hero h1 { font-size: 2.8rem; }
    .timer { flex-wrap: wrap; }
    
    .vote-buttons { flex-direction: column; }
    .vote-btn { width: 100%; justify-content: center; }
    
    .info-grid { grid-template-columns: 1fr; }
    .comparison-card { flex-direction: column; gap: 30px; }
    .divider { width: 100%; height: 1px; }

    #vignette .container {
        overflow-x: auto;
        padding: 0; /* Чтобы картинка шла в край на мобильных */
        -webkit-overflow-scrolling: touch;
    }

    .vignette-wrapper {
        width: 1200px !important; /* ФИКСИРУЕМ БАЗУ ДЛЯ КООРДИНАТ */
        min-width: 1200px;
        margin: 0;
        border-radius: 0; /* На мобильных лучше без скруглений при скролле */
    }
    
    .vignette-main-img {
        width: 100%;
        max-width: none;
    }

    #vignette .container::-webkit-scrollbar {
        height: 6px;
    }
    #vignette .container::-webkit-scrollbar-thumb {
        background: var(--gold);
        border-radius: 10px;
    }

    .wall-grid { grid-template-columns: 1fr; }
    
    .footer-content { flex-direction: column; gap: 20px; }
    .admin-controls-wrapper { width: 95%; bottom: 10px; }
    .controls-info { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 480px) {
    #hero h1 { font-size: 2.2rem; }
    .time-block { min-width: 70px; padding: 10px; }
    .time-block span { font-size: 1.5rem; }
    .logo { font-size: 1.2rem; }
}

/* School Sounds Section Styles (Compact) */
#school-sounds {
    padding: 80px 0;
}

.sounds-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.sound-pill {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sound-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.sound-pill.playing {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    border: none;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.sound-pill.playing h3 {
    color: white !important;
}

.sound-pill.playing {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.pill-icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

.pill-text h3 {
    font-size: 0.95rem;
    color: var(--teal-deep);
    margin: 0;
    white-space: nowrap;
}

/* Compact sound wave */
.sound-pill .sound-wave {
    display: flex;
    gap: 2px;
    margin-top: 0;
    height: 10px;
}

.sound-pill .sound-wave span {
    width: 2px;
    height: 3px;
}

@keyframes waveBounceSmall {
    0%, 100% { height: 3px; }
    50% { height: 8px; }
}

.sound-pill.playing .sound-wave span {
    animation: waveBounceSmall 0.6s ease-in-out infinite;
}

@media (max-width: 600px) {
    .sounds-flex {
        gap: 10px;
    }
    .sound-pill {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Premium Gallery Upload Styles */
.gallery-controls {
    margin: 40px 0 60px;
}

.glass-form {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 30px;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-footer {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.form-header input {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 15px;
    color: var(--teal-deep);
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
}

.form-header input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.upload-drop-zone {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.upload-drop-zone:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.upload-drop-zone.drag-over {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.drop-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.drop-text {
    font-size: 1rem;
    color: var(--text-muted);
}

.drop-text span {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.file-name {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 10px;
    padding: 5px 15px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50px;
}

#gallery-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.main-upload-btn {
    margin-top: 10px;
}

.progress-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    margin-top: 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.progress-bar-bg {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
    transition: width 0.3s ease;
}

.status-msg {
    text-align: center;
    font-size: 0.95rem;
    padding: 15px;
    border-radius: 15px;
}

.status-msg.success { background: rgba(16, 185, 129, 0.1); color: var(--primary); }
.status-msg.error { background: rgba(239, 68, 68, 0.1); color: #f87171; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.delete-photo-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transition: var(--transition);
    opacity: 0.8;
}

.delete-photo-btn:hover {
    transform: scale(1.2) rotate(90deg);
    opacity: 1;
    background: #dc2626;
}

/* Modal / Lightbox Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: 30px;
    overflow: hidden;
    z-index: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.modal-body {
    display: flex;
    height: 90vh;
}

.modal-image-pane {
    flex: 2;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.modal-image-pane img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.modal-comments-pane {
    flex: 1;
    background: rgba(20, 25, 35, 0.95);
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    border-left: 1px solid var(--glass-border);
}

.modal-comments-pane h3 {
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 1.5rem;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 10px;
}

.comment-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-author {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.comment-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
    display: block;
    margin-top: 5px;
}

.comments-list p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form input, .comment-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    outline: none;
}

.comment-form input::placeholder, 
.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.comment-form input:focus, 
.comment-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.comment-form textarea {
    height: 80px;
    resize: none;
}

@media (max-width: 900px) {
    .modal-body {
        flex-direction: column;
        overflow-y: auto;
    }
    .modal-image-pane {
        flex: none;
        height: 50vh;
    }
    .modal-comments-pane {
        flex: none;
        border-left: none;
        border-top: 1px solid var(--glass-border);
    }
}

/* News Timeline Section Styles */
#news-timeline { overflow: hidden; }

.timeline-wrapper {
    position: relative;
    max-height: 850px; /* Show about 2-3 rows */
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 40px;
}

.timeline-wrapper.expanded {
    max-height: 5000px; /* Big enough for 35 cards */
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.news-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card:hover {
    transform: scale(1.03) rotate(1deg);
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--secondary);
    z-index: 10;
}

.news-date {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

.news-card h3 {
    font-size: 1.1rem;
    color: var(--teal-deep);
    line-height: 1.3;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Category Colors */
.news-card[data-category="tech"] { border-left: 4px solid var(--secondary); }
.news-card[data-category="music"] { border-left: 4px solid var(--primary); }
.news-card[data-category="movie"] { border-left: 4px solid var(--accent); }
.news-card[data-category="event"] { border-left: 4px solid var(--gold); }
.news-card[data-category="sport"] { border-left: 4px solid #ef4444; }

.timeline-controls {
    text-align: center;
}

/* Hide overlay for the expanded state */
.timeline-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    pointer-events: none;
    transition: opacity 0.5s;
}

.timeline-wrapper.expanded::after {
    opacity: 0;
}

@media (max-width: 768px) {
    /* Финальные переопределения для горизонтального свайпа */
    .info-grid, .timeline-grid, .gallery-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 20px !important;
        padding: 20px 0 40px !important;
        margin: 0 -20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .info-grid::-webkit-scrollbar, 
    .timeline-grid::-webkit-scrollbar, 
    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .info-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
        height: 480px !important;
    }

    .news-card {
        flex: 0 0 80% !important;
        scroll-snap-align: center;
        width: auto !important;
    }

    .gallery-item {
        flex: 0 0 70% !important;
        scroll-snap-align: center;
        width: auto !important;
    }
}
/*     (2   4) */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/*       */
.gallery-footer {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.archive-page main {
    min-height: 100vh;
    padding-bottom: 100px;
}

.back-home-link {
    color: var(--teal-deep);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.back-home-link:hover {
    background: var(--primary);
    color: white !important;
    transform: translateX(-5px);
}
