/* ============================================================================
    Mad FM - Icecast Web Interface Styling
    Designed and Developed by Bilo Studio for Mad FM
    Powered by Everest Cast Panel
    04 apr 2026 | Version 1.0.0
============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans+Mono:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    --primary-color: #00d4ff;
    --primary-light: #00e5ff;
    --primary-dark: #00a8cc;
    --secondary-color: #0066CC;
    --secondary-dark: #0052a3;
    --dark-color: #000000;
    --dark-bg: #0a0e27;
    --white-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #7fffd4;
    --border-glow: rgba(0, 212, 255, 0.3);
    --bg-light: #f5f5f5;
    --bg-section: #beddf2;
    --hover-color: #00bfff;
    --gradient-primary: linear-gradient(135deg, #00d4ff, #0066CC);
    --gradient-dark: linear-gradient(135deg, #0066CC, #003d7a);
    --gradient-glow: linear-gradient(135deg, #00d4ff 0%, #0066CC 50%, #003d7a 100%);
    --font-family: 'Ubuntu Sans Mono', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

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

img.corner,
img[src*="corner"],
img[src*="topleft"],
img[src*="topright"],
img[src*="bottomleft"],
img[src*="bottomright"],
td.topleft,
td.topright,
td.bottomleft,
td.bottomright {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

td[height="15"],
td[width="15"] {
    display: none !important;
    height: 0 !important;
}

html, body {
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--text-color);
    background: linear-gradient(135deg, #f0f8ff 0%, #e0f4ff 100%);
    line-height: 1.6;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
    box-shadow: var(--shadow-glow);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-glow);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

/* Navigation Header */
.xiphnav {
    background: var(--gradient-dark);
    border-bottom: 3px solid var(--primary-color);
    padding: 20px 30px;
    margin-bottom: 0;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav h1 {
    font-family: var(--font-family);
    font-size: 32px;
    color: var(--white-color);
    font-weight: 700;
    margin: 0;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    background: none;
    height: auto;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.site-logo {
    width: 70px;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

.nav h1::before {
    content: none;
}

.nav {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.nav a {
    color: var(--white-color);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.nav a:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.nav a.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.xiphnav_a {
    text-decoration: none;
    font-weight: 600;
    color: var(--white-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

/* Main Content Area */
.main {
    font-family: var(--font-family);
    background-color: transparent;
    margin: 0;
    width: 100%;
    padding: 30px;
    min-height: calc(100vh - 200px);
}

.main h1 {
    text-decoration: none;
    font-weight: 700;
    font-size: 36px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 20px 0;
    margin: 0 0 30px 0;
}

.main iframe {
    width: 100%;
    border: none;
    border-radius: 15px;
    height: 600px;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 212, 255, 0.2);
    background: var(--white-color);
}

/* Typography */
.news {
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 400;
    color: var(--text-color);
}

.newsheader {
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    color: var(--white-color);
    background: var(--gradient-primary);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    border-left: 4px solid var(--primary-light);
}

.streamtd {
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-color);
    padding: 15px;
}

.streamtd_alt {
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-color);
}

.streamtd_alt_2 {
    font-family: var(--font-family);
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary-color);
}

td {
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 400;
    color: var(--text-color);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

h3 {
    margin: 25px 0 15px 0;
    padding: 0;
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 700;
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tables and Rounded Containers */
.roundcont {
    background: var(--white-color);
    color: var(--text-color);
    padding: 25px;
    margin: 25px 0;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    border-collapse: collapse;
    box-shadow: var(--shadow-md), 0 0 25px rgba(0, 212, 255, 0.15);
    transition: all 0.3s ease;
}

.roundcont:hover {
    box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 212, 255, 0.25);
    border-color: var(--primary-color);
}

.roundcont table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}

.roundcont table tr:hover {
    background-color: rgba(0, 212, 255, 0.08);
}

.roundcont table th {
    background: var(--gradient-primary);
    color: var(--white-color);
    padding: 15px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* News Content */
.newscontent {
    margin: 0;
    padding: 25px;
    background: var(--white-color);
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-md), 0 0 20px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.newscontent:hover {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
}

.newscontent h3 {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.newscontent h4 {
    margin: 20px 0 10px 0;
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newscontent p {
    margin: 0 0 15px 0;
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

.newscontent td {
    margin: 0;
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    padding: 12px 15px;
}

.newscontent td.streamdata {
    margin: 0;
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Stream Header */
.streamheader table {
    width: 100%;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
}

.streamheader td {
    margin: 0;
    padding: 12px 0;
    border: none;
    vertical-align: middle;
}

.streamheader h3 {
    margin: 0;
    border: none;
    vertical-align: middle;
}

.streamheader a {
    padding: 10px 16px;
    text-decoration: none;
    margin: 0 12px 0 0;
    display: inline-block;
    color: var(--white-color);
    font-weight: 600;
    background: var(--gradient-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.streamheader a:hover {
    background: var(--gradient-glow);
    color: var(--dark-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

.streamheader a.auth {
    margin: 0 12px 0 0;
    padding: 10px 16px;
}

/* Links and Navigation */
.newscontent a {
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 600;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.newscontent a:hover {
    font-family: var(--font-family);
    color: var(--primary-color);
    text-decoration: none;
    text-underline-offset: 4px;
}

.newscontent a.nav2 {
    font-family: var(--font-family);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    background: var(--gradient-primary);
    color: var(--dark-color);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.newscontent a.nav2:hover {
    font-family: var(--font-family);
    text-decoration: none;
    background: var(--gradient-glow);
    font-weight: 600;
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

/* Poster/Meta */
.poster {
    font-family: var(--font-family);
    margin: 40px 0 30px 0;
    padding: 20px 0;
    display: block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-top: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.poster a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 700;
    margin-left: 10px;
}

.poster a:hover {
    filter: brightness(1.2);
    text-decoration: underline;
}
/* Navigation Body */
.nav body {
    color: var(--text-color);
    background-color: var(--white-color);
}

.nav a {
    margin: 0 8px;
    padding: 8px 12px;
    display: inline-block;
    transition: all 0.3s ease;
}

.nav table {
    font-size: 14px;
    text-align: center;
    border: none;
    width: 100%;
}

/* Rounded Corners */
.roundtop {
    background: none;
    border-radius: 20px 20px 0 0;
}

.roundbottom {
    background: none;
    border-radius: 0 0 20px 20px;
}

.banner td {
    font-size: 18px;
    vertical-align: top;
    padding: 15px;
}

td.topleft {
    background: none;
    height: 15px;
    width: 15px;
    border-radius: 20px 0 0 0;
}

td.topright {
    background: none;
    height: 15px;
    width: 15px;
    border-radius: 0 20px 0 0;
}

td.bottomleft {
    background: none;
    height: 15px;
    width: 15px;
    border-radius: 0 0 0 20px;
}

td.bottomright {
    background: none;
    height: 15px;
    width: 15px;
    border-radius: 0 0 20px 0;
}

img.corner {
    width: 15px;
    height: 15px;
    border: none;
    display: block !important;
}

/* Forms and Inputs (if used) */
input, select, textarea {
    font-family: var(--font-family);
    padding: 12px 15px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.95);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background-color: var(--white-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .xiphnav {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav h1 {
        font-size: 26px;
    }
    
    .nav {
        width: 100%;
        margin-top: 10px;
        gap: 10px;
    }
    
    .main {
        padding: 15px;
    }
    
    .main h1 {
        font-size: 28px;
    }
    
    .main iframe {
        height: 400px;
    }
    
    .roundcont, .newscontent {
        padding: 20px;
        margin: 15px 0;
    }
    
    table {
        font-size: 13px;
    }
    
    td, th {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .xiphnav {
        padding: 12px;
    }
    
    .nav h1 {
        font-size: 20px;
    }
    
    .nav {
        gap: 8px;
    }
    
    .main {
        padding: 10px;
    }
    
    .main h1 {
        font-size: 24px;
    }
    
    .main iframe {
        height: 300px;
    }
    
    .newscontent {
        padding: 10px;
    }
    
    .streamheader table {
        display: block;
        overflow-x: auto;
    }
}

