/**
 * Today TV Series - Main Dark Theme Stylesheet
 * 
 * A premium dark-themed design inspired by kontrast.top
 * for TV show release listings.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #1a1d23;
    --bg-header: #15171c;
    --row-even: #1e2127;
    --row-odd: #22252b;
    --row-hover: #2a2d35;

    --accent-primary: #e74c3c;
    --accent-secondary: #00b894;
    --accent-secondary-hover: #00a381;

    --text-primary: #c8ccd0;
    --text-secondary: #8b9198;
    --text-white: #ffffff;
    --text-muted: #5c6370;

    --border-color: #2d3139;
    --border-light: #363a42;
    --link-color: #5dade2;

    --badge-size-bg: #1abc9c;
    --badge-size-text: #0a0a0a;
    --badge-lang-bg: #3498db;
    --badge-type-bg: #9b59b6;

    --modal-overlay: rgba(0, 0, 0, 0.75);
    --modal-bg: #22252b;
    --modal-border: #363a42;

    --hoster-available: #2ecc71;
    --hoster-unavailable: #555;

    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-pill: 20px;
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.6);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-white);
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* Header */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.logo-img { 
    height: 50px; 
    max-height: 70px; 
    width: auto; 
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-normal); 
}
.logo-img:hover { transform: scale(1.03); }

.navbar-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Search */
.search-container {
    display: flex;
    align-items: center;
    background: var(--row-odd);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.5rem 0.25rem 1rem;
}
.search-container:focus-within { border-color: var(--accent-secondary); }

.search-input {
    background: none; border: none; color: var(--text-primary);
    font-size: 0.85rem; width: 220px; outline: none; padding: 0.35rem 0;
}
.search-input::placeholder { color: var(--text-muted); }

.search-btn {
    background: var(--accent-secondary); border: none; color: var(--text-white);
    padding: 0.4rem 0.6rem; border-radius: var(--radius-pill); display: flex;
}

.navbar-toggle { display: none; background: none; border: none; padding: 0.5rem; }
.toggle-bar { width: 22px; height: 2px; background-color: var(--text-primary); }

/* Main Content */
.main-content {
    margin-top: 60px;
    flex: 1;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0 1.5rem;
    transition: margin-top 0.2s ease;
}

/* Banner */
.banner { padding: 1.5rem 1rem; border-bottom: 1px solid var(--border-color); }
.banner-text { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.btn-join {
    background-color: var(--accent-secondary);
    color: var(--text-white);
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
}
.btn-join:hover { background-color: var(--accent-secondary-hover); }

/* Controls Bar */
.controls-bar { padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.controls-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 0.75rem; }
.controls-row-bottom { margin-bottom: 0; justify-content: space-between; }
.control-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }

.sort-group { display: flex; align-items: center; gap: 0.5rem; }
.sort-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}
.sort-btn:hover, .sort-btn.active {
    background: var(--border-color);
    color: var(--text-white);
}

/* Filter Tag Indicator */
.filter-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 184, 148, 0.15);
    border: 1px solid var(--accent-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    color: #00b894;
}
.filter-clear-btn {
    background: none; border: none; color: #00b894; font-size: 1.1rem;
    line-height: 1; cursor: pointer; padding: 0 2px;
}
.filter-clear-btn:hover { color: #fff; }

.per-page-select {
    background: var(--row-even); color: var(--text-primary);
    border: 1px solid var(--border-color); padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm); font-size: 0.8rem;
}
.results-count { font-size: 0.8rem; color: var(--text-secondary); }

/* Table */
.table-wrapper { overflow-x: auto; }
.shows-table { width: 100%; border-spacing: 0; border-collapse: separate; table-layout: fixed; }
.shows-table thead th {
    text-transform: uppercase; font-size: 0.75rem; font-weight: 600;
    color: var(--text-secondary); padding: 0.875rem 0.75rem; text-align: left;
    border-bottom: 2px solid var(--border-color); background: var(--bg-header);
}

.col-links { width: 90px; text-align: center; }
.col-name { width: auto; }
.col-network { width: 120px; text-align: center; }
.col-download { width: 120px; text-align: center; }
.col-date { width: 165px; text-align: right; }

.shows-table tbody tr {
    background-color: var(--row-even);
    transition: background-color var(--transition-fast);
}
.shows-table tbody tr:nth-child(odd) { background-color: var(--row-odd); }
.shows-table tbody tr:hover { background-color: var(--row-hover); }
.shows-table tbody td { padding: 0.75rem; vertical-align: middle; border-bottom: 1px solid rgba(45, 49, 57, 0.5); font-size: 0.88rem; }

/* TMDb Logo Link */
.tmdb-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(1, 180, 228, 0.12);
    border: 1px solid rgba(1, 180, 228, 0.3);
    padding: 3px 7px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    text-decoration: none;
}
.tmdb-logo-link:hover {
    background: rgba(1, 180, 228, 0.3);
    border-color: #01b4e4;
    transform: scale(1.05);
}
.tmdb-text-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #01b4e4;
    letter-spacing: 0.5px;
}

/* Badges */
.show-title { 
    font-weight: 600; 
    font-size: 0.92rem; 
    color: var(--text-primary); 
    display: block; 
    margin-bottom: 0.35rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.show-title:hover {
    color: var(--accent-secondary);
}

.badges-group { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }

/* Filter TMDb Button */
.filter-tmdb-btn {
    background: rgba(0, 184, 148, 0.15);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1;
}
.filter-tmdb-btn:hover {
    background: var(--accent-secondary);
    color: #ffffff;
    transform: scale(1.1);
}

.badge {
    display: inline-block; font-size: 0.68rem; font-weight: 600;
    padding: 2px 8px; border-radius: var(--radius-sm); color: var(--text-white);
}
.badge-size { background-color: var(--badge-size-bg); color: var(--badge-size-text); }
.badge-lang { background-color: var(--badge-lang-bg); }
.badge-type { background-color: var(--badge-type-bg); }

/* Poster Hover Preview Popover */
.poster-hover-preview {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    width: 190px;
    background: #15171c;
    border: 1px solid #363a42;
    border-radius: var(--radius-md);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 184, 148, 0.15);
    overflow: hidden;
}
.poster-hover-preview.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.poster-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 270px;
}
.poster-img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
}
.poster-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    margin-left: -14px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-secondary);
    border-radius: 50%;
    animation: posterSpin 0.8s linear infinite;
}
@keyframes posterSpin {
    to { transform: rotate(360deg); }
}
.poster-info {
    padding: 0.5rem 0.6rem;
    width: 100%;
    background: rgba(21, 23, 28, 0.95);
    border-top: 1px solid #2a2d35;
}
.poster-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Download Column & Source Icons */
.dl-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Network Badges / Logos */
.network-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    display: inline-block;
    user-select: none;
}
.network-badge:hover {
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.netflix-badge { background: #e50914; color: #fff; }
.bbc-badge { background: #ff0000; color: #fff; border: 1px solid #ff4d4d; }
.disney-badge { background: #113ccf; color: #fff; }
.hulu-badge { background: #1ce783; color: #000; }
.hbo-badge { background: #5822b4; color: #fff; }
.prime-badge { background: #00a8e1; color: #fff; }
.apple-badge { background: #333333; color: #fff; border: 1px solid #555; }
.paramount-badge { background: #0064ff; color: #fff; }
.abc-badge { background: #222; color: #fff; border: 1px solid #444; }
.default-network-badge { background: #34495e; color: #fff; }

/* Enhanced Download Icon Button */
.dl-icon-btn {
    background: linear-gradient(135deg, #1e2127, #2a2d35);
    border: 2px solid var(--accent-secondary);
    color: var(--accent-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.35), inset 0 0 6px rgba(0, 184, 148, 0.2);
    cursor: pointer;
    flex-shrink: 0;
}

.dl-icon-btn:hover {
    color: #ffffff;
    background: var(--accent-secondary);
    border-color: #00e6b8;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.75), 0 0 35px rgba(0, 184, 148, 0.4);
}

.dl-svg-icon {
    filter: drop-shadow(0 0 2px rgba(0, 184, 148, 0.8));
    transition: transform 0.2s ease;
}

.dl-icon-btn:hover .dl-svg-icon {
    filter: drop-shadow(0 0 4px #ffffff);
    transform: translateY(1px);
}

.col-date { font-size: 0.82rem; color: var(--text-secondary); white-space: nowrap; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; padding: 2rem 0; }
.page-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-primary);
    padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500;
}
.page-btn:hover { background: var(--border-color); color: var(--text-white); }
.page-btn.active { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--text-white); font-weight: 700; }
.page-ellipsis { color: var(--text-secondary); padding: 0.45rem 0.4rem; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--modal-overlay); display: flex; justify-content: center; align-items: center;
    z-index: 2000; opacity: 0; visibility: hidden; transition: all var(--transition-normal); padding: 1rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--modal-bg); width: 100%; max-width: 580px;
    border-radius: var(--radius-lg); padding: 0; position: relative;
    transform: scale(0.92); transition: transform 0.3s ease;
    box-shadow: var(--shadow-modal); border: 1px solid var(--modal-border); overflow: hidden;
}
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); background: rgba(0, 0, 0, 0.15); }
.modal-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; }
.modal-body { padding: 1.5rem; }

.btn-download-main {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-secondary-hover));
    color: var(--text-white); padding: 1rem; border-radius: var(--radius-md); font-weight: 700;
    font-size: 1rem; text-decoration: none; transition: all var(--transition-fast); margin-bottom: 1.5rem; border: none;
}
.btn-download-main:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4); }

.modal-hosters-section { text-align: center; }
.modal-hosters-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.modal-hosters-warning { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 1rem; }
.modal-hosters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 140px));
    gap: 0.5rem;
    justify-content: center;
}

.hoster-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0.75rem 0.5rem; border: 1px solid var(--hoster-unavailable); border-radius: var(--radius-md);
    background: var(--bg-main); text-decoration: none; color: var(--text-primary); transition: all var(--transition-fast); gap: 0.25rem;
}
.hoster-btn.available { border-color: var(--hoster-available); }
.hoster-btn.available:hover { background: rgba(46, 204, 113, 0.1); transform: translateY(-2px); color: var(--text-white); }
.hoster-btn.unavailable { opacity: 0.5; pointer-events: none; }
.hoster-name { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.hoster-status { font-size: 0.7rem; color: var(--text-secondary); }

/* Footer */
.site-footer { text-align: center; padding: 1.5rem 2rem; color: var(--text-muted); font-size: 0.8rem; border-top: 1px solid var(--border-color); margin-top: auto; }

/* Responsive */
@media (max-width: 992px) {
    .col-network { width: 100px; }
    .col-download { width: 100px; }
    .col-date { width: 140px; }
    .search-input { width: 160px; }
}

@media (max-width: 768px) {
    .navbar-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .navbar-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        order: 3;
        border-top: 1px solid var(--border-color);
        padding-top: 0.5rem;
    }
    .navbar-links.active {
        display: flex;
    }
    .nav-link {
        padding: 0.6rem 0.75rem;
        width: 100%;
        border-radius: 0;
    }

    .navbar-search {
        order: 2;
        flex: 1;
        min-width: 0;
    }
    .search-input {
        width: 100%;
    }
    .search-container {
        width: 100%;
    }

    .navbar-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        order: 4;
    }
    .toggle-bar {
        display: block;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .navbar-toggle.active .toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .navbar-toggle.active .toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .navbar-toggle.active .toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .main-content {
        margin-top: 115px;
        padding: 0 0.75rem;
    }

    .controls-bar {
        padding: 0.75rem 0;
    }
    .controls-row {
        gap: 0.75rem;
    }

    /* Mobile table: card-based layout */
    .table-wrapper {
        overflow-x: visible;
    }
    .shows-table {
        min-width: 0;
        table-layout: auto;
    }
    .shows-table thead {
        display: none;
    }
    .shows-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        gap: 0.5rem;
        align-items: center;
    }
    .shows-table tbody td {
        border-bottom: none;
        padding: 0;
    }
    .shows-table tbody td.col-links {
        width: auto;
        order: 1;
    }
    .shows-table tbody td.col-name {
        flex: 1;
        min-width: 0;
        order: 2;
    }
    .shows-table tbody td.col-name .show-title {
        font-size: 0.85rem;
        word-break: break-word;
    }
    .shows-table tbody td.col-download {
        width: auto;
        order: 3;
    }
    .shows-table tbody td.col-download .dl-group {
        justify-content: flex-start;
    }
    .shows-table tbody td.col-network,
    .shows-table thead th.col-network {
        display: none;
    }
    .shows-table tbody td.col-date {
        width: 100%;
        text-align: left;
        order: 4;
        font-size: 0.75rem;
        color: var(--text-muted);
        padding-top: 0.25rem;
        border-top: 1px solid rgba(45, 49, 57, 0.5);
    }

    /* Modal responsive */
    .modal-content {
        max-width: 100%;
        border-radius: var(--radius-md);
        margin: 0.5rem;
    }
    .modal-hosters-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    /* Pagination responsive */
    .pagination {
        flex-wrap: wrap;
        padding: 1.5rem 0;
    }

    /* Footer responsive */
    .site-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-inner {
        padding: 0.5rem 0.75rem;
    }
    .logo-img {
        height: 30px;
    }
    .banner {
        padding: 1rem 0.5rem;
    }
    .btn-join {
        padding: 0.4rem 1.25rem;
        font-size: 0.8rem;
    }
    .sort-group {
        flex-wrap: wrap;
    }
    .sort-btn {
        font-size: 0.72rem;
        padding: 0.25rem 0.5rem;
    }
    .per-page-group {
        flex-wrap: wrap;
    }
    .dl-icon-btn {
        width: 36px;
        height: 36px;
    }
    .badges-group {
        gap: 0.25rem;
    }
    .badge {
        font-size: 0.62rem;
        padding: 1px 5px;
    }
}

/* Public TV Show Request Page Styles */
.request-page-content {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.request-page-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

.request-form-section {
    background: var(--row-odd);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.request-form-header h1 {
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.request-form-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.request-success-banner {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.request-error-banner {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.req-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.req-form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.req-required { color: var(--accent-primary); }
.req-optional { color: var(--text-muted); font-weight: normal; font-size: 0.78rem; }

.req-form-group input[type="text"],
.req-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.req-form-group input[type="text"]:focus,
.req-form-group textarea:focus {
    border-color: var(--accent-secondary);
}

.req-input-with-hint {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.req-field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.req-field-hint a {
    color: #01b4e4;
    text-decoration: underline;
}

.req-char-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: right;
}

.req-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-secondary-hover));
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    align-self: flex-start;
}

.req-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.req-limit-note {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Sidebar Info Cards */
.request-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.req-info-card {
    background: var(--row-odd);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.req-info-card h3 {
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.req-how-list, .req-rules-list {
    padding-left: 1.2rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.req-recent-list {
    list-style: none;
    padding: 0;
    font-size: 0.82rem;
}

.req-recent-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(45, 49, 57, 0.5);
    color: var(--text-primary);
}

.req-recent-list li:last-child {
    border-bottom: none;
}

.req-recent-list a {
    color: var(--accent-secondary);
    font-weight: 600;
}

@media (max-width: 992px) {
    .request-page-grid {
        grid-template-columns: 1fr;
    }
}

/* ── SEO: Screen-reader-only text (visually hidden but accessible) ───── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
