/* === FIXED: maintain horizontal layout on all screen sizes === */

.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 0;
    padding: 0;
}

.tv-card {
    display: flex;
    flex-direction: row;
    background: var(--gray-header-footer);
    /* background: #252525; */
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    align-items: center;
    padding: .5rem;
    transition: transform 0.3s ease;
}

.tv-card:hover {
    transform: scale(1.02);
}

.tv-image-frame {
    width: 70px; /* 75 */
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 1rem;
    border: 1px solid #444;
}

.tv-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tv-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    min-width: 0;
}

.tv-text h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.tv-text p {
    margin: 0.4rem 0 0!important; /* 0.4 */
    color: #bbb;
    font-size: 0.9rem!important;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}




/* =============================================================== */

    .accordion {
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--gray-header-footer);
    }

    .accordion-item {
        border-bottom: 1px solid var(--border);
    }

    .accordion-item:last-child {
        border-bottom: none;
    }

    .accordion-header {
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--gray-header-footer);
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .accordion-header:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .accordion-header h3 {
        margin: 0;
        font-size: var(--text-size-h2);
        color: var(--foreground);
    }

    .accordion-header svg {
        width: 24px;
        height: 24px;
        fill: var(--foreground);
        transition: transform 0.3s ease;
    }

    .accordion-header.active svg {
        transform: rotate(180deg);
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        padding: 0 1rem;
        background: var(--gray-header-footer);
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .accordion-content.active {
        padding: 1rem;
        max-height: 500px;
    }

    .accordion-content p {
        margin: 0;
        font-size: var(--text-size-p);
        color: #adadad;
        line-height: 1.5;
    }


.support-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  justify-content: center;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.image-frame {
  flex: 1 1 26%; /* 1 1 32%; */
  padding: 1rem; /* .6rem; */
  /* max-width: 32%; */
  border: 1px solid #2e2f31;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: var(--gray-header-footer);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius:6px;
}

@media (max-width: 600px) {
  .image-frame {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


        .radio-item {
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1rem;
            background: var(--gray-header-footer);
            text-align: center;
            transition: transform 0.3s ease;
        }

        .radio-item:hover {
            transform: scale(1.02);
        }

        .radio-item h3 {
            font-size: var(--text-size-h2);
            margin: 0.5rem 0;
            color: var(--foreground);
        }

        .radio-item p {
            font-size: var(--text-size-p);
            color: #adadad;
            margin: 0;
        }

        @media (max-width: 480px) {
            .radio-grid {
                grid-template-columns: 1fr;
            }
        }


/* ========================================================================= */
/* === Author Information === */
/* Created by: Enok                                                        */
/* Version: 1.0.7                                                          */
/* Website: www.esml.se                                                     */
/* ========================================================================= */

/* ========================================================================= */
/* === Root Variables === */
/* Defines global CSS variables for colors, sizes, and animations */
:root {
    --background: #171717; /* Default background color */
    --foreground: rgb(238, 238, 238); /* Default text color */
    --border: rgba(214, 226, 255, 0.08); /* Border color with transparency */
    --primary: rgb(130, 130, 130); /* Primary color for buttons and accents */
    --primary-foreground: rgb(255, 255, 255); /* Text color for primary elements */
    --secondary: linear-gradient(180deg, rgba(120, 120, 120, 0.3), rgba(120, 120, 120, 0.1)); /* Gradient for secondary backgrounds */
    --solid-header-background: #171717; /* Solid header background color */
    --solid-footer-background: #171717; /* Solid footer background color */
    --footer-background: linear-gradient(180deg, rgba(120, 120, 120, 0.1), rgba(120, 120, 120, 0.02)); /* Gradient for footer */
    --gray-header-footer: linear-gradient(180deg, rgba(120, 120, 120, 0.1), rgba(120, 120, 120, 0.02)); /* Gradient for header/footer */
    --pink-primary: rgb(200, 80, 110); /* Pink accent color */
    --pink-primary-foreground: rgb(255, 255, 255); /* Text color for pink elements */
    --gray-primary: rgb(130, 130, 130); /* Gray accent color */
    --gray-primary-foreground: rgb(255, 255, 255); /* Text color for gray elements */
    --blue-primary: rgb(90, 140, 200); /* Blue accent color */
    --blue-primary-foreground: rgb(255, 255, 255); /* Text color for blue elements */
    --green-primary: rgb(100, 180, 130); /* Green accent color */
    --green-primary-foreground: rgb(0, 0, 0); /* Text color for green elements */
    --purple-primary: rgb(150, 110, 200); /* Purple accent color */
    --purple-primary-foreground: rgb(255, 255, 255); /* Text color for purple elements */
    --orange-primary: rgb(200, 130, 90); /* Orange accent color */
    --orange-primary-foreground: rgb(0, 0, 0); /* Text color for orange elements */
    --footer-primary: rgb(130, 130, 130); /* Footer primary color */
    --footer-primary-foreground: rgb(255, 255, 255); /* Text color for footer elements */
    --header-logo-size: 84.48px; /* Size of header logo */
    --icon-size: 24px; /* General icon size */
    --nav-icon-size: 44px; /* Navigation icon size */
    --album-cover-size: 40px; /* Album cover image size */
    --text-size-h1: 2.5rem; /* H1 font size */
    --text-size-h2: 2.5rem; /* H2 font size */
    --text-size-h1-footer: 1rem; /* Footer H1 font size */
    --text-size-p: 1.2rem; /* Paragraph font size */
    --text-size-metar: 0.9rem; /* Small text size for metadata */
    --padding-base: 1rem; /* Base padding value */
    --scroll-duration: 35s; /* Duration for scrolling animations */
}

/* ========================================================================= */
/* === Base Styles === */
body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: Inter, Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow-x: hidden;
}

/* ========================================================================= */
/* === Header Styles === */
.header {
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 20;
    padding: var(--padding-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.header-text h1 {
    font-size: clamp(1rem, 2vw, 1.8rem);
    margin: 0;
    color: #eee;
    white-space: nowrap;
}

.header-text p {
    /* font-size: var(--text-size-p); */
    margin: 0;
    color: #adadad;
    white-space: nowrap;
}

.header-logo {
    height: var(--header-logo-size);
    width: auto;
}

/* ========================================================================= */
/* === Navigation Styles === */
.nav-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.52rem;
    padding: 0.2rem;
}

.nav-icons a,
.nav-join,
[id^=nav-] {
    background: var(--gray-header-footer);
    border: 1px solid var(--border);
    color: var(--foreground);
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    padding: 0.05rem 0.4rem;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    height: var(--nav-icon-size);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    font-size: 0.9rem;
}

.nav-icons a svg,
.nav-join svg,
[id^=nav-] svg {
    fill: var(--foreground);
    width: 26px;
    height: 26px;
    padding: 0 0.3rem 0 0;
}

.nav-icons a:focus,
.nav-icons a:hover,
.nav-join:focus,
.nav-join:hover,
[id^=nav-]:focus,
[id^=nav-]:hover {
    color: var(--primary);
    background: var(--gray-header-footer);
    transform: scale(1.1);
    outline: 0;
}

.nav-icons a:focus svg,
.nav-icons a:hover svg,
[id^=nav-]:focus svg,
[id^=nav-]:hover svg {
    fill: var(--primary);
}

.nav-join {
    background: var(--primary);
    border: 1px solid var(--primary-foreground);
    color: var(--primary-foreground);
}

.nav-join svg {
    fill: var(--primary-foreground);
}

/* ========================================================================= */
/* === Footer Styles === */
.footer {
    background: var(--footer-background);
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: calc(var(--padding-base) * 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: clamp(0.1rem, 1.5vw, 0.75rem);
}

.footer-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.footer-text h1 {
    font-size: var(--text-size-h1-footer);
    margin: 0;
    color: #eee;
    white-space: nowrap;
}

.footer-text p {
    font-size: var(--text-size-metar);
    margin: 0;
    color: #adadad;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80vw;
    display: block;
}

.album-cover {
    height: var(--album-cover-size);
    width: var(--album-cover-size);
    object-fit: cover;
    border-radius: 4px;
}

/* ========================================================================= */
/* === Content Layout === */
.content {
    display: flex;
    gap: 1.5%;
    padding: 1vw;
    flex: 1;
    overflow-y: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    min-height: 0;
}

@supports not ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
    .content {
        background: rgba(23, 23, 23, 0.95);
    }
}

.left-column {
    background: var(--secondary);
    border-radius: 5px;
    flex: 0 0 auto;
    min-width: 60px;
    max-width: 100px;
    opacity: 0.9;
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 8px 0;
    box-sizing: border-box;
}

.color-square {
    width: clamp(24px, 4vw, 28px);
    height: clamp(24px, 4vw, 28px);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-square:hover {
    transform: scale(1.1);
}

#grey-square { background: #828282; }
#pink-square { background: #c8506e; }
#blue-square { background: #5a8cc8; }
#green-square { background: #64b482; }
#purple-square { background: #966ec8; }
#orange-square { background: #c8825a; }

.middle-column {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding-right: 1.7%;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(214, 226, 255, 0.12) rgba(30, 30, 30, 0.9);
}

.middle-column::-webkit-scrollbar {
    width: 8px;
}

.middle-column::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.95), rgba(30, 30, 30, 0.85));
    border-radius: 4px;
}

.middle-column::-webkit-scrollbar-thumb {
    background: rgba(214, 226, 255, 0.12);
    border-radius: 4px;
}

.middle-column::-webkit-scrollbar-thumb:hover {
    background: rgba(214, 226, 255, 0.2);
}

@supports (scrollbar-width: thin) {
    .middle-column {
        scrollbar-width: thin;
        scrollbar-color: rgba(214, 226, 255, 0.12) rgba(30, 30, 30, 0.9);
    }
}

.right-column {
    background: transparent;
    border-radius: 5px;
    min-width: 350px;
    flex: 0 0 350px;
    opacity: 0.9;
    height: 100%;
    overflow: hidden;
    position: relative;
    border: none;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 12;
}

@supports not ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
    .right-column {
        background: rgba(23, 23, 23, 0.95);
    }
}

.right-scroller {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
    padding: 0 0 1.2rem;
    animation: infinite-scroll var(--scroll-duration) linear infinite;
    will-change: transform;
    height: auto;
    z-index: 13;
}

@keyframes infinite-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.right-scroller:hover {
    animation-play-state: paused;
}

.right-scroller > .right-container {
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.right-container {
    background: var(--gray-header-footer);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: auto;
    pointer-events: none;
}

.right-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    pointer-events: none;
}

.right-headline {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #eee;
    pointer-events: none;
}

.right-description {
    font-size: 0.9rem;
    color: #adadad;
    margin-bottom: 1rem;
    pointer-events: none;
}

.right-cta {
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    pointer-events: auto;
    cursor: pointer;
    z-index: 14;
}

.right-cta:focus,
.right-cta:hover {
    background: var(--primary);
    transform: scale(1.05);
    outline: 0;
}

/* ========================================================================= */
/* === Main Content === */
.main-content {
    position: relative;
    z-index: 10;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
    padding: 0;
    z-index: 10;
}

#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.radio-grid-x-x {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    z-index: 10;
}

/* ========================================================================= */
/* === Card Component === */
.x-x {
    margin-bottom: 0;
    padding: 1rem 1rem 0 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--gray-header-footer);
}

.x-x h1 {
    margin: 0;
    padding: 0; /* Change to desired padding, e.g., padding: 0.5rem; */
}

/* ========================================================================= */
/* === News and About Sections === */
.border-section,
.news-section {
    background: var(--gray-header-footer);
    border-radius: 12px;
    padding: 0 1rem 1rem 1rem;
    margin-top: 0; /* 2rem; */
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    position: relative;
    z-index: 10;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

@supports not ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
    .border-section,
    .news-section {
        background: rgba(23, 23, 23, 0.95);
    }
}

.news-section p {
    margin: 0;
    padding: 1.5rem;
    color: #adadad;
    font-size: 1.1rem;
    text-align: center;
    word-break: break-word;
}

.news-item {
    background: var(--gray-header-footer);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

@supports not ((-webkit-backdrop-filter: blur(16px)) or (backdrop-filter: blur(16px))) {
    .news-item {
        background: rgba(23, 23, 23, 0.95);
    }
}

.news-item:focus,
.news-item:hover {
    transform: scale(1);
    background: var(--gray-header-footer);
    outline: 0;
}

.border-section h1 {
    text-align: left;
    font-size: var(--text-size-h1);
    margin: 1rem 0;
}

.border-section h3 {
    font-size: var(--text-size-h3);
    margin: 0.5rem 0;
    text-align: left;
    word-wrap: break-word;
    overflow: visible;
    white-space: normal;
    line-height: 1.2;
}

.border-section p {
    text-align: left;
    word-break: break-word;
    padding-bottom: 0;
}

.center-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    pointer-events: none;
}

/* ========================================================================= */
/* === Responsive Design === */
@media screen and (min-width: 1025px) {
    .header {
        background: var(--secondary);
        padding: clamp(0.75rem, 2.5vw, 1.5rem);
    }
    .footer {
        background: var(--footer-background);
        padding: calc(clamp(0.75rem, 2.5vw, 1.5rem) * 0.8);
    }
    .footer-text p {
        max-width: 50vw;
    }
}

@media screen and (max-width: 1024px) {
    .header {
        background: var(--solid-header-background);
display: block;
    }
    .footer {
        background: var(--solid-footer-background);
    }
    .left-column,
    .right-column {
        display: none !important;
    }
    .content {
        flex-wrap: wrap;
        gap: 0;
        overflow-y: hidden;
    }
    .middle-column {
        flex: 1 1 100%;
        padding-right: 0;
        scrollbar-width: none;
    }
    .middle-column::-webkit-scrollbar {
        display: none;
    }
    .nav-icons {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .nav-icons a,
    .nav-join,
    [id^=nav-] {
        flex: 1 1 auto;
        width: auto;
        max-width: 48%;
        margin-bottom: 0.5rem;
    }
    .footer-text p {
        max-width: 70vw;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .footer,
    .header {
        flex-direction: row;
        background: var(--solid-header-background);
    }
    .footer {
        background: var(--solid-footer-background);
    }
    .footer-content,
    .header-content {
        flex-direction: row;
        justify-content: flex-start;
    }
    .header-text {
        align-items: flex-start;
    }
    .nav-icons {
        width: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    .nav-icons a,
    .nav-join,
    [id^=nav-] {
        width: auto;
        max-width: none;
        flex: 1 1 auto;
    }
}

@media screen and (max-width: 768px) {
    .footer,
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: var(--solid-header-background);
     padding: .4rem;   /* fulhack */
    }
    .header-logo {
        height: calc(var(--header-logo-size) * 0.64);
    }
    .footer {
        background: var(--solid-footer-background);
        padding-bottom: calc(var(--padding-base) * 0.08);
    }
    .footer-content,
    .header-content {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
    }
    .header-text {
        align-items: flex-start;
    }
    .nav-icons {
        /* width: -webkit-fill-available; */
        width: -moz-available;
        width: fill-available;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .nav-icons a,
    .nav-join,
    [id^=nav-] {
        flex: 1 1 auto;
        width: auto;
        max-width: 48%;
        padding: 0.05rem 0.4rem;
        font-size: 0.9rem;
    }
    .footer .nav-icons {
        flex-wrap: nowrap;
    }
    .footer .nav-icons a,
    .footer .nav-join,
    .footer [id^=nav-] {
        max-width: none;
    }
    .middle-column {
        padding-inline-start: 5px;
    }
    .footer-text p {
        max-width: 80vw;
    }
}

@media screen and (max-width: 480px) {
    .border-section p,
    .news-section p {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
        padding: 0.5rem;
    }
    .radio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .right-image {
        height: 120px;
    }
    .border-section {
        padding: 1rem !important;
    }
    .border-section h3 {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    }
    .nav-icons a,
    .nav-join,
    [id^=nav-] {
        padding: 0.05rem 0.3rem;
        font-size: clamp(0.6rem, 1.5vw, 0.7rem);
    }
    .nav-icons a svg,
    .nav-join svg,
    [id^=nav-] svg {
        width: 16px;
        height: 16px;
        padding: 0 0.2rem 0 0;
    }
    .footer-text p {
        font-size: clamp(0.5rem, 1.3vw, 0.7rem);
        max-width: 90vw;
    }
}

/* ========================================================================= */
/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    .color-square,
    .nav-icons a,
    .nav-join,
    .news-item,
    .right-cta,
    [id^=nav-] {
        transition: none;
        transform: none;
    }
    .right-scroller {
        animation: none;
    }
}

@media screen and (max-width: 768px) {
  .tv-grid {
    grid-template-columns: 1fr; /* En kolumn på mobil och platta */
    gap: 1rem;
    padding: 0; /* 0 0.5rem; */
  }

  .tv-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .tv-image-frame {
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0 0 1rem 0;
  }

  .tv-text h3 {
    font-size: 1.1rem;
  }

  .tv-text p {
    font-size: 0.9rem;
  }
}