.library-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.library-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.library-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    color: var(--neutral-300);
    border: 1px solid var(--neutral-700);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.library-search {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.library-search .search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--neutral-900);
    border: 1px solid var(--neutral-700);
    color: var(--neutral-100);
    border-radius: 4px;
    font-family: var(--font-sans);
}

.library-search .search-input:focus {
    outline: none;
    border-color: var(--gold-500);
}

.library-search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--neutral-400);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.lib-card {
    background: var(--neutral-900);
    border: 1px solid var(--neutral-800);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lib-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--gold-700);
}

.lib-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--neutral-800);
    background: var(--neutral-800);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lib-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lib-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-500);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.lib-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--neutral-100);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.lib-desc {
    font-size: 0.9rem;
    color: var(--neutral-400);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.lib-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-500);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
}

.lib-action:hover {
    color: var(--gold-300);
}

.lib-action svg {
    width: 16px;
    height: 16px;
}

/* Modal extra styles */
#subscriberModal, #mockLoginModal {
    z-index: 10000;
    display: none;
}

#subscriberModal .modal-content, #mockLoginModal .modal-content {
    background: var(--neutral-900);
    border: 1px solid var(--gold-500);
    max-width: 500px;
    margin: 15% auto;
    padding: 0;
    border-radius: 8px;
    position: relative;
}

.modal-header {
    background: var(--neutral-800);
    padding: 1.5rem;
    border-bottom: 1px solid var(--neutral-700);
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--gold-500);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: var(--neutral-400);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: white;
}

.secondary-btn:hover {
    background: rgba(212, 165, 42, 0.1) !important;
}

@media (max-width: 768px) {
    .library-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .library-search {
        max-width: 100%;
    }
}
