/* ====== GLOBAL ====== */
body {
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    padding: 0;
    color: #eee;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.main-content {
    flex: 1;
}

.admin-icon {
    display: none;
   /* display: block;*/
	width: 32px;
	height: 32px;
	max-height: 32px;
	max-width: 32px;
	
}

.astraldew-logo {
    align-items: center;
    height: 100px;
    margin: 0 20px;
}


.admin-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}


/* ====== TOP BAR ====== */
.topbar {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
 /*   align-items: center; */
    padding: 10px 18px;
    background: #111;
    border-bottom: 2px solid #222;
    min-height: 36px;
}

/* ====== TOP CONTENT ====== */
.top-container {
    display: flex;
    flex-direction: row;
    flex: 1;
    gap: 20px;
    padding: 20px;
    min-height: 0;
}


/* ====== CLOCK ====== */
.clockbox {
    text-align: right;
    margin-left: auto;
}

.clock {
    font-size: 60px;
    font-weight: bold;
}

.date {
    font-size: 24px;
    opacity: 0.8;
    margin-top: -5px;
}

/* ====== BOXES ====== */
.box {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 10px 20px;
    border-left: 6px solid #4da3ff;
}

/* setter farger på alle headere */
.serier-title-header,
.kommende-title-header,
.kalender-title-header,
.popular-title-header {
    color: #4da6ff; 
}

.box h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.series-box, .calendar-box, .upcoming-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0;
    font-size: 16px;
}

.calendar-box {
    display: none;
}



/* ====== SERIES HIGHLIGHTS \ should work for Calender as well! ====== */
.series-item,
.calendar-item,
.upcoming-item {
    margin-bottom: 15px;
	padding-left: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
    font-size: 20px;
	border-top: 1px solid rgba(255, 180, 60, 0.25);
	border-bottom: 1px solid rgba(255, 180, 60, 0.25);
	border-radius: 6px;
}

.series-today,
.series-today * {
    color: #4dff88;
    font-weight: bold;
}

.series-tomorrow,
.popular-show-name,
.series-tomorrow * {
    color: #ffd54d;
    font-weight: bold;
}

/* ====== SCROLL CONTAINERS ====== */
#series-scroll-container,
#calendar-scroll-container,
#upcoming-scroll-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

#series-scroll-content,
#calendar-scroll-content,
#upcoming-scroll-content {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

/* ====== NEWS BAR ====== */
.newsbar {
    margin-top: auto;
    background: #111;
    padding: 28px 30px 32px 30px;
    border-top: 2px solid #222;
    height: 15vh;
    box-sizing: border-box;
	
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.news-box {
    flex: 1;
    opacity: 0;
    transition: opacity 1s ease;
    min-height: 50px;
    color: #ffffff;
}

.news-title-header {
    color: #4da6ff; /* eller hvilken blåfarge du vil */
}

.news-items {
    font-size: 18px;
    opacity: 0.85;
}

.news-meta {
    font-size: 14px;
    opacity: 0.8;
    display: flex;
    gap: 10px;
}

.news-category {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.news-summary {
    flex: 1;
}

.news-title {
    font-size: 22px;
    font-weight: bold;
    margin-top: 4px;
}

/* ====== CATEGORY COLORS ====== */
.cat-innenriks { color: #4da3ff; }
.cat-utenriks { color: #ff6b6b; }
.cat-sport    { color: #4dff88; }
.cat-kultur   { color: #c77dff; }
.cat-okonomi  { color: #ffd54d; }
.cat-naering  { color: #ffa726; }
.cat-default  { color: #cccccc; }

.popular_show_bar {
    margin-top: auto;
    background: #111;
    padding: 28px 30px 32px 30px;
    border-top: 2px solid #222;
    height: 15vh;
    box-sizing: border-box;
	
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.popular-box {
    flex: 1;
    opacity: 0;
    transition: opacity 1s ease;
    min-height: 30px;
    color: #ffffff;
}

#popular-box.visible {
    opacity: 1;
}

.popular-title-header {
    color: #4da6ff; /* eller hvilken blåfarge du vil */
}


.popular-line {
	display: inline-flex;
	
}

.popular-show-name {
    font-size: 20px;
    opacity: 0.85;
	font-weight: bold;
	display: inline-block;
	padding: 4px 8px;
	border-top: 1px solid rgba(255, 180, 60, 0.25);
	border-bottom: 1px solid rgba(255, 180, 60, 0.25);
	border-radius: 6px;
}

.popular-show-vote,
.popular-show-views,
.popular-show-genre {
	    font-size: 20px;
		opacity: 0.85;
		padding: 4px 8px;
		display: inline-block;
}

/* ====== streaming logo ====== */
.provider-logo {
    width: 30px;
    height: auto;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.9;
}

.streaming-logos {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.series-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
	font-size: 20px;
}




/* ====== MOBILVISNING (perfekt layout) ====== */
@media (max-width: 480px) {
/* Tving hele siden til å fylle skjermen uten scroll */
body, html {
	height: 100dvh;
	margin: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.astraldew-logo {
    align-items: center;
    height: 50px;
    margin: 0 20px;
}


/* --- TOP BAR --- */
.topbar {
	display: flex;
	justify-content: flex-start; /* Været til venstre */
 	align-items: center;
	margin-top:15px;
	padding: 10px;
	height: 60px; /* Fast høyde for forutsigbarhet */
	box-sizing: border-box;
}

/* Skjul klokken på mobil */
.clock, .date {
	display: none;
}

/* --- HOVEDINNHOLD (3 kolonner) --- */
.top-container {
	display: flex;
	flex-direction: row; /* Beholder kolonner ved siden av hverandre */
	flex: 1; /* Tar opp all restplass mellom top og bunn */
	gap: 15px;
	padding: 5px;
	overflow: hidden; /* Hindrer hele containeren i å scrolle */
}

.calendar-box {
        display: none;
    }

.series-box,
.upcoming-box {
	flex: 1; /* Alle får nøyaktig 1/3 av bredden */
	min-width: 0; 
	display: flex;
	flex-direction: column;
	background: rgba(255,255,255,0.05); /* Valgfritt: skiller kolonnene litt */
	border-radius: 4px;
}

/* Individuell scrolling inni hver boks */
#series-scroll-container,
#upcoming-scroll-container {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch; /* Myk scrolling på iPhone */
}

/* --- NEWS BAR NEDERST --- */
/* Nyhetsbar: horisontal layout */
    .newsbar {
        display: none;
    }

.popular_show_bar {
    background: #111;
    padding: 10px 0px 0px 10px;
    border-top: 2px solid #222;
    height: 15vh;
    box-sizing: border-box;
    display: block;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.popular-title-header {
    color: #4da6ff; /* eller hvilken blåfarge du vil */
	font-size: 20px;
	display: block;
	margin-top: 0 !important;
    padding-top: 0 !important;
}

.popular-box {
    display: flex;
	flex: 0;
    flex-direction: row;
}

.popular-line {
	display: flex;
    flex-direction: row; /* navn på linje 1 */;	
}

.popular-show-name {
    font-size: 15px;
    opacity: 0.85;
	font-weight: bold;
	display: inline-block;
	padding: 4px 8px;
	border-top: 1px solid rgba(255, 180, 60, 0.25);
	border-bottom: 1px solid rgba(255, 180, 60, 0.25);
	border-radius: 6px;
	text-align: center;
}

.popular-show-vote,
.popular-show-genre {
		display: inline-block; 
	    font-size: 13px;
		opacity: 0.85;
		
}

.popular-show-vote{
	text-align: center;
}

.popular-show-genre {
	text-align: right;
	hite-space: normal;
}

.popular-dott{
	display: none;
}

.popular-show-views {
		display: none; 
	    font-size: 10px;
		opacity: 0.85;
		padding: 4px 0px;
}
.popular-subline {
        display: block;
        gap: 6px;
        align-items: center;
}
}
