/* ============================================================================
   STREAMITTER v2 - Design System & Global Styles
   Brand Colors:
     Black:   #000000
     Purple:  #512888
     Studio:  #7349AC
     Coral:   #EB6123
     Grenadier: #DA4200
   ============================================================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-black: #000000;
    --color-purple: #512888;
    --color-studio: #7349AC;
    --color-coral: #EB6123;
    --color-grenadier: #DA4200;

    --color-purple-light: #9B7DCB;
    --color-purple-dark: #3A1D62;
    --color-purple-bg: #F5F0FA;
    --color-coral-light: #F49A6E;
    --color-coral-bg: #FFF5F0;

    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    --color-success: #059669;
    --color-warning: #D97706;
    --color-danger: #DC2626;
    --color-info: #2563EB;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    --player-height: 80px;
    --header-height: 72px;
}

/* --- Global Reset Overrides --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-gray-800);
    background-color: var(--color-gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: var(--player-height);
}

a {
    color: var(--color-purple);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--color-studio);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-gray-900);
    line-height: 1.25;
}

.text-purple { color: var(--color-purple) !important; }
.text-coral { color: var(--color-coral) !important; }
.text-studio { color: var(--color-studio) !important; }
.text-muted { color: var(--color-gray-500) !important; }

/* --- Layout --- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.section-header .view-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-purple);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section-divider {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid var(--color-gray-200);
}

/* --- Header / Navbar --- */
.site-header {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-purple-dark) 100%);
    position: sticky;
    top: 0;
    z-index: 1040;
    height: var(--header-height);
    box-shadow: var(--shadow-md);
}

.site-header .navbar {
    height: var(--header-height);
}

.site-header .navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-header .navbar-brand img {
    height: 32px;
    width: auto;
}

.site-header .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.site-header .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.4rem 0.6rem;
}

.site-header .navbar-toggler-icon {
    filter: invert(1);
}

.header-search {
    position: relative;
    max-width: 320px;
}

.header-search input {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 0.45rem 1rem 0.45rem 2.5rem;
    font-size: 0.875rem;
    width: 100%;
    transition: all var(--transition-base);
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.header-search input:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(81,40,136,0.3);
}

.header-search input:-webkit-autofill,
.header-search input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgba(81,40,136,0.4) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.header-search .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    pointer-events: none;
}

.nav-auth-btn {
    background: var(--color-coral) !important;
    color: #fff !important;
    border-radius: var(--radius-full) !important;
    padding: 0.4rem 1.2rem !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all var(--transition-fast) !important;
}

.nav-auth-btn:hover {
    background: var(--color-grenadier) !important;
    transform: translateY(-1px);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple) 50%, var(--color-studio) 100%);
    padding: 4rem 0 4.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(235,97,35,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.hero-section .lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-search-box {
    max-width: 580px;
    position: relative;
}

.hero-search-box input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.2rem;
    font-size: 1.05rem;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    transition: all var(--transition-base);
}

.hero-search-box input::placeholder {
    color: rgba(255,255,255,0.6);
}

.hero-search-box input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.22);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}

.hero-search-box .search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
}

.hero-search-box .btn-search {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-coral);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-search-box .btn-search:hover {
    background: var(--color-grenadier);
}

/* --- Search Hero --- */
.search-hero {
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple) 100%);
    padding: 2.5rem 0 2rem;
    color: #fff;
}
.search-hero h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #fff !important;
}
.search-hero-form {
    max-width: 640px;
}
.search-hero-form .position-relative {
    margin-bottom: 1rem;
}
.search-hero-form input[type="text"] {
    width: 100%;
    padding: 0.9rem 7rem 0.9rem 3rem;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    color: #fff;
    outline: none;
    transition: all var(--transition-fast);
}
.search-hero-form input[type="text"]::placeholder { color: rgba(255,255,255,0.55); }
.search-hero-form input[type="text"]:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.22);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1);
}
.search-hero-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    pointer-events: none;
}
.search-hero-form button[type="submit"] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-coral);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.55rem 1.4rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.search-hero-form button[type="submit"]:hover { background: var(--color-grenadier); }
.search-hero-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: stretch;
}
.search-hero-filters select,
.search-hero-clear {
    height: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}
.search-hero-filters select {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 0 2rem 0 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    appearance: auto;
    outline: none;
    transition: all var(--transition-fast);
    min-width: 0;
}
.search-hero-filters select:first-of-type { min-width: 10rem; }
.search-hero-filters select:nth-of-type(2) { min-width: 9rem; }
.search-hero-filters select:nth-of-type(3) { min-width: 8rem; }
.search-hero-filters select:focus,
.search-hero-filters select:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
}
.search-hero-filters select option { color: var(--color-gray-900); background: #fff; }
.search-hero-clear {
    padding: 0 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-fast);
}
.search-hero-clear:hover { background: rgba(255,255,255,0.15); color: #fff; }
@media (max-width: 575.98px) {
    .search-hero { padding: 1.5rem 0 1.25rem; }
    .search-hero h1 { font-size: 1.2rem; color: #fff !important; }
    .search-hero-form input[type="text"] { padding: 0.75rem 6rem 0.75rem 2.5rem; font-size: 0.9rem; }
    .search-hero-filters select,
    .search-hero-clear { height: 2.35rem; min-height: 2.35rem; font-size: 0.8rem; }
    .search-hero-filters select:first-of-type,
    .search-hero-filters select:nth-of-type(2) { min-width: 0; }
}

.hero-station-count {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    font-weight: 600;
}

/* --- Station Cards --- */
.station-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-100);
    padding: 1.25rem;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.station-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--color-purple-light);
}

.station-card .station-logo {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
}

.station-card .station-info {
    flex: 1;
    min-width: 0;
}

.station-card .station-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-card .station-name a {
    color: inherit;
}

.station-card .station-name a:hover {
    color: var(--color-purple);
}

.station-card .station-meta {
    font-size: 0.8rem;
    color: var(--color-gray-500);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.station-card .station-tagline {
    font-size: 0.82rem;
    color: var(--color-gray-600);
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-card .station-genre-tag {
    display: inline-block;
    background: var(--color-purple-bg);
    color: var(--color-purple);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.station-card .station-counts {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.25rem;
    font-size: 0.72rem;
}

.station-card .station-counts i {
    font-size: 0.68rem;
    margin-right: 0.15rem;
}

.station-card .station-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.station-card .btn-fav-card {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: transparent;
    color: var(--color-gray-400);
    border: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.station-card .btn-fav-card:hover {
    color: var(--color-coral);
    border-color: var(--color-coral);
    background: rgba(235,97,35,0.06);
}

.station-card .btn-fav-card.active {
    color: var(--color-coral);
    border-color: var(--color-coral);
    background: rgba(235,97,35,0.08);
}

.station-card .btn-play-card {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: var(--color-purple);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(81,40,136,0.3);
}

.station-card .btn-play-card:hover {
    background: var(--color-studio);
    transform: scale(1.08);
}

/* Station Card - Compact Variant */
.station-card-compact {
    padding: 0.85rem 1rem;
}

.station-card-compact .station-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.station-card-compact .btn-play-card {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.85rem;
}

/* --- Country Cards --- */
.country-card {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.country-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.country-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.country-card:nth-child(2n) .country-card-inner {
    background: none;
}
.country-card:nth-child(2n) {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-grenadier) 100%);
}

.country-card:nth-child(3n) {
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-studio) 100%);
}

.country-card:nth-child(5n) {
    background: linear-gradient(135deg, var(--color-studio) 0%, var(--color-purple) 100%);
}

.country-card .country-flag {
    font-size: 1.75rem;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 0.5;
    z-index: 1;
    line-height: 1;
}

.country-card .country-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
}

.country-card .country-count {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
}

/* --- Genre Cards --- */
.genre-card {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-studio) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.genre-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.genre-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.genre-card:nth-child(2n) {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-grenadier) 100%);
}

.genre-card:nth-child(3n) {
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple) 100%);
}

.genre-card .genre-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
}

.genre-card .genre-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    position: relative;
    z-index: 1;
}

/* --- Autocomplete Dropdown --- */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 260px;
    overflow-y: auto;
}

.autocomplete-dropdown .autocomplete-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--color-gray-900);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--color-gray-100);
    transition: background var(--transition-fast);
}

.autocomplete-dropdown .autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-dropdown .autocomplete-item:hover {
    background: var(--color-gray-50);
    color: var(--color-purple);
}

/* --- Buttons --- */
.btn-primary {
    background: var(--color-purple) !important;
    border-color: var(--color-purple) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: var(--color-purple-dark) !important;
    border-color: var(--color-purple-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-coral {
    background: var(--color-coral);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    transition: all var(--transition-fast);
}

.btn-coral:hover {
    background: var(--color-grenadier);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-purple {
    border: 2px solid var(--color-purple);
    color: var(--color-purple);
    background: transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    transition: all var(--transition-fast);
}

.btn-outline-purple:hover {
    background: var(--color-purple);
    color: #fff;
}

.btn-purple {
    background: var(--color-purple);
    color: #fff;
    border: 2px solid var(--color-purple);
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.btn-purple:hover {
    background: var(--color-purple-dark);
    border-color: var(--color-purple-dark);
    color: #fff;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    font-size: 0.9rem;
}

/* --- Forms --- */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-gray-300);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: var(--color-gray-900);
    background-color: #fff;
    transition: all var(--transition-fast);
}

.input-group-text {
    color: var(--color-gray-600);
    background-color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(81,40,136,0.12);
}


.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-gray-700);
    margin-bottom: 0.35rem;
}

/* --- Cards & Panels --- */
.card {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-200);
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* --- Breadcrumb --- */
.breadcrumb-wrapper {
    background: #fff;
    border-bottom: 1px solid var(--color-gray-200);
    padding: 0.65rem 0;
}

.breadcrumb {
    margin: 0;
    font-size: 0.82rem;
}

.breadcrumb-item a {
    color: var(--color-gray-500);
}

.breadcrumb-item.active {
    color: var(--color-gray-800);
    font-weight: 600;
}

/* --- Tags / Badges --- */
.badge-purple {
    background: var(--color-purple);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3em 0.65em;
    border-radius: var(--radius-full);
}

.badge-coral {
    background: var(--color-coral);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3em 0.65em;
    border-radius: var(--radius-full);
}

.status-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.active { background: #D1FAE5; color: #065F46; }
.status-badge.pending { background: #FEF3C7; color: #92400E; }
.status-badge.rejected { background: #FEE2E2; color: #991B1B; }
.status-badge.inactive { background: var(--color-gray-200); color: var(--color-gray-600); }
.status-badge.offair { background: #E0E7FF; color: #3730A3; }
.status-badge.unreachable { background: #FDE8E1; color: #C2410C; }
.status-badge.deleted { background: #F3F4F6; color: #6B7280; }
.status-badge.awaiting_admin { background: #DBEAFE; color: #1E40AF; }
.status-badge.awaiting_broadcaster { background: #FEF3C7; color: #92400E; }

/* --- Flash Messages --- */
.alert-streamitter {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* --- Pagination --- */
.pagination .page-link {
    color: var(--color-purple);
    border-radius: var(--radius-sm);
    margin: 0 2px;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid var(--color-gray-200);
    padding: 0.45rem 0.8rem;
}

.pagination .page-item.active .page-link {
    background: var(--color-purple);
    border-color: var(--color-purple);
    color: #fff;
}

.pagination .page-link:hover {
    background: var(--color-purple-bg);
    color: var(--color-purple);
}

/* --- Footer --- */
.site-footer {
    background: var(--color-gray-900);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
    font-size: 0.85rem;
    margin-bottom: var(--player-height);
}

.site-footer h5 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--color-coral-light);
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* --- Player (Fixed Bottom) --- */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background: linear-gradient(135deg, #0D0015 0%, var(--color-purple-dark) 100%);
    color: #fff;
    z-index: 1050;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    transition: transform var(--transition-base);
}

.player-bar.hidden {
    transform: translateY(100%);
}

.player-bar .player-station-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
    max-width: 340px;
}

.player-bar .player-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.player-bar .player-station-name {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar .player-now-playing {
    font-size: 0.75rem;
    color: var(--color-coral-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar .player-status {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}

.player-bar .player-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0 1.5rem;
}

.player-bar .btn-player {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-bar .btn-player:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.player-bar .btn-play-main {
    width: 48px;
    height: 48px;
    background: var(--color-coral);
    color: #fff;
    font-size: 1.25rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(235,97,35,0.4);
}

.player-bar .btn-play-main:hover {
    background: var(--color-grenadier);
    transform: scale(1.05);
}

.player-bar .player-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    margin-left: auto;
}

.player-bar .volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.player-bar .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-coral);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.player-bar .volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-coral);
    cursor: pointer;
    border: none;
}

.player-bar .btn-popup {
    font-size: 0.9rem;
}

/* --- Banner Ad Slots --- */
.ad-slot {
    text-align: center;
    margin: 1.5rem 0;
    min-height: 50px;
}

.ad-slot img {
    border-radius: var(--radius-sm);
    max-width: 100%;
    height: auto;
}

.ad-slot-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray-400);
    margin-top: 0.25rem;
}

/* --- Stat Cards (Dashboard) --- */
.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.stat-card .stat-icon.purple { background: var(--color-purple-bg); color: var(--color-purple); }
.stat-card .stat-icon.coral { background: var(--color-coral-bg); color: var(--color-coral); }
.stat-card .stat-icon.success { background: #D1FAE5; color: #059669; }
.stat-card .stat-icon.info { background: #DBEAFE; color: #2563EB; }

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-gray-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--color-gray-500);
    font-weight: 500;
}

/* --- SEO Content Block --- */
.seo-block {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--color-gray-200);
    margin-top: 2rem;
}

.seo-block h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.seo-block p {
    color: var(--color-gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .player-bar .player-station-info {
        max-width: 200px;
    }
    .player-bar .player-volume .volume-slider {
        width: 70px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --player-height: 70px;
    }
    .hero-section h1 {
        font-size: 1.65rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .player-bar {
        padding: 0 0.75rem;
    }
    .player-bar .player-logo {
        width: 42px;
        height: 42px;
    }
    .player-bar .player-controls {
        margin: 0 0.5rem;
        gap: 0.4rem;
    }
    .player-bar .btn-play-main {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .player-bar .player-volume .volume-slider {
        display: none;
    }
    .player-bar .btn-popup {
        display: none;
    }
    .station-card .station-logo {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }
    .section-header h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .player-bar .player-station-info {
        max-width: 140px;
    }
    .player-bar .player-station-name {
        font-size: 0.82rem;
    }
    .country-card {
        padding: 0.85rem;
        min-height: 100px;
    }
}

/* --- Loading States --- */
.skeleton {
    background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-400);
}

/* --- Utility --- */
.gap-grid { gap: 1.25rem; }
.hover-lift { transition: transform var(--transition-base); }
.hover-lift:hover { transform: translateY(-2px); }
