/* ==============================================
   GLOBAL STYLES & RESET
   ============================================== */

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

:root {
    /* Light mode colors */
    --primary-color: #cfd8e3;
    --secondary-color: #abbbcb;
    --accent-color: #eea4ca;
    --background-gradient: linear-gradient(135deg, #6B7B8C 0%, #4A5568 100%);
    --card-background: rgba(255, 255, 255, 0.95);
    --control-background: #bac1c8;
    --text-primary: #676772;
    --text-secondary: #4a5568;
    --text-muted: #3a3d41;
    --text-light: #67696c;
    --border-color: #e2e8f0;
    --error-color: #e53e3e;
    --success-color: #38a169;
    --warning-color: #d69e2e;

    /* Wheel Colours */
    --available-light: #E8F0F7;
    --available-med: #c1c7cb;
    --available-dark: rgba(158, 175, 190, 0.63);
    --limited-light: #f8f3bc;
    --limited-med: #f0e237;
    --limited-dark: #ccb9a3;
    --wheel-bg-l: #70a8c0;
    --wheel-bg-r: #f5efef;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border radius */
    --radius-sm: 3px;
    --radius-md: 5px;
    --radius-lg: 10px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Trebuchet MS', sans-serif, Arial, sans-serif;
    background: var(--background-gradient);
    min-height: 100vh;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 18px;
    margin: 0;
    padding: 0;
}

/* ==============================================
   MAIN LAYOUT CONTAINER
   ============================================== */

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==============================================
   HEADER - SMALLER & AT TOP
   ============================================== */

.header {
    text-align: center;
    color: var(--text-muted);
    padding: unset;
    background: rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: clamp(3rem, 3vw, 2.5rem);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    background: linear-gradient(45deg, #dce1e7, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.header h1 span {
    font-size: clamp(0.5rem, 1.5vw, 2.0rem);
    background: linear-gradient(45deg, #dce1e7, #7f8a98);
    border-radius: var(--radius-lg);
    margin-bottom: 5px;
    overflow: auto;
    backdrop-filter: blur(10px);
    border: 1px ridge #828c9f;
}

.header p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-family: 'American Typewriter', serif;
    opacity: 0.9;
    max-width: 80%;
    margin: 0 auto;
    color: var(--text-secondary);

}

/* ==============================================
   KEYWORD FILTERING SECTION - UNDER HEADER
   ============================================== */

.keyword-section {
    background: linear-gradient(45deg, var(--available-dark), var(--available-light));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.keyword-input {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: left;
    align-items: center;
}

.keyword-input input {
    flex: 1;
    width: 50%;
    text-align: left;
    padding: 10px var(--spacing-md);
    margin: 20px 3px 0 5px;
    border: 1px solid rgba(71, 96, 107, 0.68);
    border-radius: 40px;
    font-size: 0.8rem;
    transition: all var(--transition-normal);
    background: #f3f3f3;
    color: #676772FF;
}

.keyword-input input:focus {
    outline: none;
    border-color: var(--available-dark);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: left;
    margin: 0 5px 0 0px;
}

.keyword-tag {
    background: linear-gradient(135deg, #f9eaf1, #f9ccd6);
    color: rgba(124, 30, 30, 0.82);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-fast);
    border: 1px solid rgba(180, 45, 45, 0.63);
    font-weight: 500;
}

.keyword-tag .remove {
    cursor: pointer;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 30%;
    background: rgba(157, 88, 88, 0.71);
    color: lavenderblush;
    font-size: 0.7rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
}

/* ==============================================
   MAIN CONTENT LAYOUT
   ============================================== */

.main-layout {
    display: flex;
    flex: 1;
    gap: var(--spacing-md);
    overflow: hidden;
}

/* ==============================================
   NEWS CONTENT AREA (CENTER-LEFT)
   ============================================== */

.news-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.action-buttons {
    width: 100%;
    display: flex;
    flex: auto;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

/* Status Section */
.status {
    background: var(--card-background);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin: 0 auto;
    text-align: center;
    font-weight: 500;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.status.filtered {
    background: linear-gradient(135deg, #dde1d9, #f1ffee);
    color: rgba(38, 105, 67, 0.68);
    border-color: #e4fed7;
    width:98%;
}

/* Loading */
.loading {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    color: white;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    overflow-y: auto;
    padding-right: var(--spacing-sm);
    flex: 1;
}

.news-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    cursor: pointer;
    height: fit-content;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.news-content {
    padding: var(--spacing-md);
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.news-source {
    font-weight: 600;
    color: var(--primary-color);
}

.news-date {
    font-style: italic;
}

/* ==============================================
   SOURCES SIDEBAR (RIGHT SIDE - STATIC)
   ============================================== */

.sources-sidebar {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

/* Individual Source Wheels - Static Grid */
.sources-wheel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-sm);
}

/* Force grid items to respect the 2-column layout */
#activeSources,
#limitedSources {
    display: contents;
}

.active-wheel {
    background: linear-gradient(135deg,
    rgba(26, 59, 83, 0.15),
    rgba(150, 188, 211, 0.15),
    rgba(54, 56, 65, 0.1)
    );
    margin-bottom: var(--spacing-md);
}

/* Collapsible "other sources" wheel. <details> can't be a grid itself, so the list inside is */
.other-wheel {
    display: block;
    background: linear-gradient(135deg,
    rgba(83, 59, 26, 0.1),
    rgba(211, 188, 150, 0.12),
    rgba(65, 56, 54, 0.08)
    );
}

.other-wheel > summary {
    list-style: none;
    cursor: pointer;
    margin-bottom: 0;
}

.other-wheel > summary::-webkit-details-marker {
    display: none;
}

.other-wheel[open] > summary {
    margin-bottom: var(--spacing-sm);
}

.other-header small {
    padding: 0;
    font-size: 0.75rem;
    font-weight: 400;
}

#otherSources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
    padding: 0;
}

.wheel-category {
    grid-column: 1 / -1;
    padding: var(--spacing-sm) 2px 2px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.limited-wheel {
    background: linear-gradient(135deg,
    rgba(26, 59, 83, 0.1),
    rgba(150, 188, 211, 0.1),
    rgba(203, 213, 224, 0.15)
    );
}

/* Wheel headers */
.wheel-header {
    grid-column: 1 / -1;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: var(--spacing-md);
    color: #5c6773;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-sm);
    border: 1px solid #9eafb9;
}

/* Source items in wheels - Static Grid Items */
.wheel-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.active-source, .limited-source {
    background: linear-gradient(135deg,
    rgba(242, 247, 250, 0.6),
    rgba(159, 192, 211, 0.15)
    );
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(26, 59, 83, 0.15);
}

.active-source:hover, .limited-source:hover {
    background: linear-gradient(135deg,
    rgba(110, 123, 138, 0.25),
    rgba(75, 74, 84, 0.1)
    );
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(203, 213, 224, 0.2);
    opacity: 1;
}

.wheel-item input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
    margin: 0;
    accent-color: var(--accent-color);
}

.wheel-item label {
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin: 0;
    line-height: 1.3;
}

.limited-source label {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.9;
}

/* ==============================================
   BUTTONS
   ============================================== */

.btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(45deg, var(--available-dark), var(--available-med));
    color: #2a0303;
    border: 1px solid var(--available-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 200;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    background: #acb8cc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary, .btn-primary {
    padding: var(--spacing-md) 30px;
    margin-top: 40px;
    background: rgba(153, 189, 141, 0.29);
    border: 1px solid rgba(141, 159, 189, 0.29);
    font-size: 1rem;
    font-weight: 300;
    color: #262a2f;
}

.btn-secondary:hover {
    background: #acb8cc;
}

 .btn-tertiary {
    padding: var(--spacing-md) 30px;
    margin-top: 40px;
     background: rgba(73, 77, 84, 0.29);
    border: 1px solid rgba(141, 159, 189, 0.29);
    font-size: 1rem;
    font-weight: 300;
    color: #262a2f;
}

.btn-tertiary:hover {
    background: var(--primary-color);
    color: white;
}

/* ==============================================
   NO RESULTS STATE
   ============================================== */

.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--card-background);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    border: 2px dashed var(--border-color);
    grid-column: 1 / -1;
}

.no-results h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

/* ==============================================
   MODAL STYLES
   ============================================== */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close:hover {
    color: var(--text-primary);
}

/* ==============================================
   SETTINGS
   ============================================== */

.settings-btn {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    z-index: 100;
}

.settings-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: rgba(90, 103, 216, 0.42);
}

.settings-content {
    margin: var(--spacing-lg) 0;
}

.setting-item {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.setting-item label {
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.setting-item select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-primary);
}

/* ==============================================
   FOOTER
   ============================================== */

.footer {
    text-align: center;
    padding: var(--spacing-md) 0;
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    font-size: 0.8rem;
}

.footer p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.8rem;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1024px) {
    .sources-sidebar {
        width: 350px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .sources-sidebar {
        width: 100%;
        max-height: 400px;
        order: -1;
    }

    .sources-wheel {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        max-height: 200px;
    }

    .keyword-input {
        flex-direction: column;
    }

    .keyword-input input {
        min-width: unset;
        max-width: none;
    }

    .action-buttons {
        flex-direction: column;
    }

    .header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--spacing-xs);
    }

    .main-layout {
        padding: var(--spacing-xs);
    }

    .sources-wheel {
        grid-template-columns: 1fr;
    }

    .wheel-item {
        padding: var(--spacing-sm);
    }
}

/* ==============================================
   UTILITIES
   ============================================== */

.success-notification {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: var(--success-color);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    animation: slideIn var(--transition-normal);
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==============================================
   ACCESSIBILITY & FOCUS STATES
   ============================================== */

.btn:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.wheel-item:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .spinner {
        animation: none;
    }
}

/* ==============================================
   PRINT STYLES
   ============================================== */

@media print {
    .sources-sidebar,
    .settings-btn,
    .modal,
    .keyword-section,
    .action-buttons {
        display: none !important;
    }

    .main-layout {
        flex-direction: column;
    }

    .news-section {
        width: 100%;
    }

    .news-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    body {
        background: white;
        color: black;
    }
}
/* ==============================================
   IMAGE PLACEHOLDER
   ============================================== */

.news-image-placeholder {
    height: 150px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

.news-image-placeholder small {
    font-size: 0.8rem;
    padding: 0;
}

.news-image-placeholder br {
    display: none;
}

/* ==============================================
   DARK MODE
   ============================================== */

body.dark {
    --background-gradient: linear-gradient(135deg, #1f242c 0%, #12161c 100%);
    --card-background: rgba(34, 39, 47, 0.95);
    --text-primary: #e2e6ec;
    --text-secondary: #c3cad4;
    --text-muted: #a3acb8;
    --text-light: #8e98a5;
    --border-color: #3a414c;
}

body.dark .news-card,
body.dark .modal-content,
body.dark .status,
body.dark .status.filtered {
    background: var(--card-background);
    color: var(--text-primary);
}

body.dark .news-description,
body.dark .news-meta {
    color: var(--text-secondary);
}

/* ==============================================
   "ONLY SHOW" KEYWORDS
   ============================================== */

.btn-only {
    background: linear-gradient(135deg, #eaf6ee, #c9e8d3);
}

.keyword-tag.required {
    background: linear-gradient(135deg, #eef8f0, #cdebd6);
    color: rgba(30, 90, 50, 0.9);
    border-color: rgba(45, 130, 75, 0.6);
}

.keyword-tag.required .remove {
    background: rgba(60, 130, 85, 0.75);
}

/* ==============================================
   TOPIC PACKS
   ============================================== */

.topic-packs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 5px;
}

.topic-packs-label {
    padding: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.topic-packs-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: 0;
}

.topic-pack {
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--available-dark);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.topic-pack:hover {
    background: rgba(255, 255, 255, 0.85);
}

.topic-pack[aria-pressed="true"] {
    background: linear-gradient(135deg, #f9eaf1, #f9ccd6);
    color: rgba(124, 30, 30, 0.82);
    border-color: rgba(180, 45, 45, 0.63);
    text-decoration: line-through;
}

/* ==============================================
   SORT BAR
   ============================================== */

.sort-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0 0 var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sort-bar label {
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sort-bar select {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--card-background);
    color: var(--text-primary);
    font-size: 0.8rem;
}

/* ==============================================
   HIDDEN ARTICLES DRAWER
   ============================================== */

.hidden-drawer {
    background: var(--card-background);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.hidden-drawer summary {
    cursor: pointer;
    padding: var(--spacing-xs) 0;
    font-weight: 500;
}

.hidden-list {
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
    padding: 0;
}

.hidden-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px 0;
    border-top: 1px solid var(--border-color);
}

.hidden-list li * {
    padding: 0;
}

.hidden-title {
    flex: 1 1 60%;
    color: var(--text-primary);
}

.hidden-reason {
    font-size: 0.75rem;
    color: rgba(157, 88, 88, 0.9);
}

.hidden-show {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 2px 8px !important;
    cursor: pointer;
}

.hidden-show:hover {
    background: var(--available-light);
}

body.dark .topic-pack {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

body.dark .hidden-show:hover {
    background: rgba(255, 255, 255, 0.08);
}
