body {
    min-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #FF7000 rgba(255, 255, 255, 0.1);
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb {
    background: #FF7000;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #e66500;
}

.library-container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1rem;
    padding-left: 0;
}

.library-layout {
    display: grid;
    grid-template-columns: 280px minmax(672px, 1fr);
    gap: 2rem;
    margin-left: -1rem;
}

/* Стили для левой колонки */
.library-sidebar {
    background: #0a1118;
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid #562401;
    padding: 1rem;
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: #FF7000;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(86, 36, 1, 0.7);
}

.section-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-links li {
    margin-bottom: 0.5rem;
}

.section-links a {
    color: #bac6d2;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.section-links a:hover {
    background: rgba(255, 112, 0, 0.1);
    color: #fff;
}

.section-links a.active {
    background: rgba(255, 112, 0, 0.2);
    color: #FF7000;
}

/* Стили для правой колонки */
.library-content {
    background: #18222b;
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid #562401;
    padding: 1.5rem;
    height: 100%;
}

.library-content::-webkit-scrollbar {
    width: 8px;
}

.library-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.library-content::-webkit-scrollbar-thumb {
    background: #FF7000;
    border-radius: 4px;
}

.library-content::-webkit-scrollbar-thumb:hover {
    background: #e66500;
}

.content-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(86, 36, 1, 0.7);
}

.content-title {
    color: #FF7000;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.content-body {
    color: #bac6d2;
    line-height: 1.6;
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-image {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.info-block {
    background: rgba(255, 112, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-block h3 {
    color: #FF7000;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
}

.ref-link {
    display: block;
    color: #FF7000;
    text-decoration: none;
    margin-top: 1rem;
    font-family: monospace;
}

.ref-link:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1366px) {
    .library-container {
        max-width: 1100px;
    }
    
    .library-layout {
        grid-template-columns: 250px minmax(600px, 1fr);
    }
}

@media (max-width: 1024px) {
    .library-container {
        max-width: 900px;
    }
    
    .library-layout {
        grid-template-columns: 220px minmax(500px, 1fr);
        gap: 1.5rem;
    }

    .content-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .library-container {
        margin: 1rem;
        padding: 0;
    }

    .library-layout {
        grid-template-columns: 1fr;
        margin: 0;
        gap: 1rem;
    }

    .library-sidebar {
        margin-bottom: 1rem;
        position: static !important;
        top: auto !important;
    }

    .section-links a {
        padding: 0.7rem;
    }

    .content-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .content-body {
        font-size: 0.95rem;
    }

    .info-block {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .library-container {
        margin: 0.5rem;
    }

    .library-sidebar {
        padding: 0.8rem;
        position: static !important;
        top: auto !important;
    }

    .library-content {
        padding: 1rem;
    }

    .content-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1rem;
        padding: 0.3rem;
    }

    .section-links a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .content-body {
        font-size: 0.9rem;
    }

    .info-block {
        padding: 1rem;
        margin: 1rem 0;
    }

    .info-block h3 {
        font-size: 1.1rem;
    }

    .footer {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .library-container {
        margin: 0.3rem;
    }

    .library-sidebar,
    .library-content {
        padding: 0.8rem;
    }

    .library-sidebar {
        position: static !important;
        top: auto !important;
    }

    .content-title {
        font-size: 1.1rem;
    }

    .section-links a {
        font-size: 0.85rem;
    }

    .content-body {
        font-size: 0.85rem;
    }

    .footer {
        padding: 0.7rem;
        font-size: 0.75rem;
    }
}

.footer {
    padding: 1rem;
    color: #bac6d2;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 3rem;
} 