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

body {
    background: #061224;
    color: #e0e0e0;
    font-family: 'Georgia', serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

header, main, .search-box, footer, .emerald-section, .pinterest-widget {
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 30px 20px 20px;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: 10px;
    color: #FFD700;
    text-shadow: 
        0 0 8px rgba(255, 215, 0, 0.7),
        0 0 15px rgba(255, 215, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
    font-weight: normal;
    font-family: 'Georgia', serif;
}

.subtitle {
    font-size: 1.3rem;
    color: #FFD700;
    font-style: italic;
    margin-bottom: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.description {
    max-width: 750px;
    margin: 0 auto 22px;
    line-height: 1.8;
    color: #FFD700;
    font-size: 1.05rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.links a {
    color: #FFD700;
    text-decoration: none;
    border: 1px solid rgba(255, 215, 0, 0.5);
    padding: 10px 22px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: rgba(255, 215, 0, 0.05);
    backdrop-filter: blur(10px);
}

.links a:hover {
    background: #FFD700;
    color: #061224;
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

.emerald-open-btn:hover {
    background: #3da05c !important;
    box-shadow: 0 0 25px rgba(80, 200, 120, 0.8) !important;
    transform: translateY(-3px) scale(1.05);
}

.search-box {
    text-align: center;
    padding: 10px;
}

#search {
    width: 80%;
    max-width: 500px;
    padding: 14px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 30px;
    color: #FFD700;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#search:focus {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

#search::placeholder {
    color: #8090b0;
}

main {
    padding: 15px 20px 60px;
}

.lang-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 10px;
    max-width: 1300px;
    margin: 0 auto;
}

.lang-grid li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 10px;
    padding: 12px 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    min-height: 48px;
}

.lang-grid li:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: #FFD700;
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.lang-grid a {
    color: #FFD700;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    width: 100%;
}

.lang-grid a:hover {
    color: #FFD700;
}

.lang-grid a::after {
    content: "→";
    color: #FFD700;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.lang-grid a:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 30px;
    list-style: none;
    padding: 0;
    text-align: left;
}

.album-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(80, 200, 120, 0.15);
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.album-item:hover {
    background: rgba(80, 200, 120, 0.08) !important;
    border-color: #50C878 !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(80, 200, 120, 0.3) !important;
}

.album-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding-bottom: 20px;
}

.album-cover {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
}

.album-title {
    color: #50C878;
    margin: 15px 15px 5px 15px;
    font-size: 1.15rem;
    font-weight: bold;
    text-align: center;
}

.album-subtitle {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin: 0 15px 15px 15px;
    font-style: italic;
    text-align: center;
}

.play-text {
    display: inline-block;
    background: #50C878;
    color: #061224;
    padding: 8px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.album-item:hover .play-text {
    background: #3da05c;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(80, 200, 120, 0.5);
}

footer {
    text-align: center;
    padding: 30px;
    color: #FFD700;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

@media (max-width: 1000px) {
    .lang-grid { grid-template-columns: repeat(3, 1fr); }
    h1 { font-size: 3rem; letter-spacing: 8px; }
}

@media (max-width: 700px) {
    .lang-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 2.5rem; letter-spacing: 6px; }
    .subtitle { font-size: 1.15rem; }
}

@media (max-width: 500px) {
    .lang-grid { grid-template-columns: 1fr; }
    h1 { font-size: 1.8rem; letter-spacing: 4px; }
    .subtitle { font-size: 1rem; }
    .description { font-size: 0.95rem; }
    .links a { padding: 8px 16px; font-size: 0.9rem; }
}

.lang-counter {
    font-size: 1.15rem;
    color: #FFD700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

.lang-counter span {
    font-weight: bold;
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.5);
}

.pinterest-widget {
    text-align: center;
    padding: 40px 20px;
    margin-top: 30px;
}

.pinterest-widget h2 {
    font-size: 1.8rem;
    color: #FFD700;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

@media (max-width: 600px) {
    .pinterest-widget h2 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
}

/* Эффект наведения для кнопок соцсетей в Изумрудной книге */
.emerald-links a:hover {
    background: #50C878 !important;
    color: #061224 !important;
    border-color: #50C878 !important;
    box-shadow: 0 0 20px rgba(80, 200, 120, 0.6) !important;
    transform: translateY(-2px);
}
