body {
    font-family: 'Segoe UI Rounded', 'Segoe UI', sans-serif;
    background: #f4f4f4;
    color: #222;
    margin: 0;
    padding: 0;
}

h1{
		text-transform: uppercase;
}

/* Spinner */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    font-size: 18px;
    color: #555;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #555;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fejl-besked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    font-size: 18px;
    color: #555;
	text-align: center;
}

.fejl-besked a{
    color: #555;
}

.fejl-besked a:hover{
	text-decoration: none;
}

/* login.php + register.php + glemtkodeord.php + reset.php */

.login-box {
    max-width: 400px;
    margin: 10vh auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	text-align: center;
}

.login-box h2{
	text-transform: uppercase;
	margin-bottom: 25px;
}

.login-box .tips{
	display: block;
	width: 100%;
	text-align: left;
	font-size: 12px;
}

.login-logo {
    max-width: 100%;
    height: auto;
	padding: 0 40px 20px;
    box-sizing: border-box;
}

.login-box label{
	display: block;
    margin-top: 15px;
	width: 100%;
	text-align: left;
    box-sizing: border-box;
}

.login-box input[type="email"],
.login-box input[type="password"],
.login-box input[type="text"],
.login-box select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-box input[type="submit"] {
	margin-top: 10px;
    width: auto;
    padding: 12px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
}

.login-box input[type="submit"]:hover {
    background-color: #333;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.success-message {
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.plexhelp{
	float: right;
	color: #333;
    transition: all 0.3s ease;
}

.plexhelp:hover{
	color: #666;
}

/* register.php - popup */

.popup {
	position: fixed;
	top: 0; 
	left: 0; 
	right: 0; 
	bottom: 0;
	background: rgba(0,0,0,0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999;
}


.popup-content {
	background: #fff;
	padding: 30px;
	border-radius: 10px;
	text-align: center;
}

.popup-content button {
	margin-top: 15px;
	padding: 10px 20px;
	border: none;
	background: #4CAF50;
	color: white;
	border-radius: 5px;
	cursor: pointer;
}


/* nav.php */

#burger-icon {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1001;
    font-size: 24px;
    cursor: pointer;
}

#burger-icon i{
    padding: 10px;
    border-radius: 15%;
    background: #6c757d;
    border: 1px solid #aaa;
    color: white;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#burger-icon i:hover{
    background: #5a6268;
}

#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1000;
	pointer-events: auto;
}

#side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 6px rgba(0,0,0,0.2);
    padding: 0px;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#side-menu.open {
    transform: translateX(0);
}

.menu-header {
    text-align: center;
    padding: 20px;
}

.menu-logo {
    max-width: 100%;
    height: auto;
}

#side-menu ul {
    list-style: none;
    padding: 0;
	margin: 0;
}

#side-menu li {
    margin: 0;
    padding: 0;
	position: relative;
	transition: all 0.2s ease;
}

#side-menu li:hover {
	background-color: #ddd;
}

#side-menu li::after {
	content: '';
	width: 100%;
	height: 1px;
	background-color: #ddd;
    position: absolute;
    bottom: 0;
    left: 0;
}

#side-menu li a {
    width: 100%;
    text-decoration: none;
    color: #444;
    font-size: 16px;
    display: block;
    padding: 20px 10px;
    box-sizing: border-box;
	text-transform: uppercase;
    letter-spacing: 1.5px;
}

#side-menu i{
	margin-right: 8px;
    width: 40px;
    text-align: center;
    font-size: 24px;
    transform: translateY(3px);
}

#side-menu ul.plexset {
    margin-top: auto;
	border-top: 1px solid #ddd;
}

.logout-button {
    width: 100%;
    padding: 12px;
    background-color: #bbb;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
	transition: all 0.2s ease;
}

.logout-button:hover {
    background-color: #c9302c;
}

#side-menu li a.nav-profile-link {
    display: inline-flex;              /* Sørger for at elementet holder sig til indholdets bredde */
    align-items: center;
}

.nav-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;                   /* Fjerner baseline spacing */
    flex-shrink: 0;
    float: left;
	margin-right: 8px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.nav-profile-link span {
	line-height: 40px;
    position: relative;
}

/* film.php - film-box */

.film-box {
    max-width: 700px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
	border-radius: 16px;
	transition: all 0.2s ease;
}

.box-dark {
    background: #000;
}

.box-light {
    background: #fff;
}

/* film.php - film-box > poster-container */

.poster-container {
    position: relative;
}

.poster {
	margin: 0 auto;
    max-height: calc(100vh - 123px);
	max-width: 100%;
    display: block;
}

.poster-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.poster-imdb {
    background: #f5c518;
    color: #000;
    padding: 6px 6px;
    border-radius: 4px;
	font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
	text-decoration: none;
}

.poster-imdb img {
    height: 28px;
    margin-right: 3px;
}

.poster-plex {
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
}

.poster-plex img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.poster-imdb, .poster-plex{
	transition: all 0.2s ease;
}

.poster-imdb:hover, .poster-plex:hover{
	transform: scale(0.9);
}

/* film.php - film-box > poster-container > overlay */

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    background: linear-gradient(to top, 
        rgba(30,30,30,1) 0%, 
        rgba(30,30,30,1) 30%, 
        rgba(30,30,30,0) 100%
    );
    color: #fff;
    padding: 100px 30px 15px;
    cursor: pointer;
}

.overlay h3 {
    margin: 0 0 5px 0;
    font-size: 25px;
    position: relative;
}

.overlay h3 span{
	margin-left: 5px;
    font-size: 15px;
}

.overlay .prefix{
    font-weight: bold;
}

.summary {
    max-height: 25px;
    overflow: hidden;
    position: relative;
}

.summary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(30,30,30,0), rgba(30,30,30,1));
    pointer-events: none;
}

/* film.php - film-box > full-info */

.full-info {
	position: relative;
	transition: all .2s ease;
	max-height: 0px;
	background: #fff;
}

.collapsed {
    padding: 0 30px 0;
	max-height: 0px;
	overflow: hidden;
}

.expanded {
	max-height: 100%;
    padding: 30px;
}

.full-info h3 {
    margin: 0 0 5px 0;
    font-size: 25px;
    position: relative;
}

.full-info h3 span{
	margin-left: 5px;
    font-size: 15px;
}

.info-prefix{
    position: relative;
}

.full-info .prefix{
    font-weight: bold;
}

.full-summary {
    position: relative;
}

/* film.php - film-box > full-info > info-logo */

.info-logo{
    display: inline-flex;
    align-items: center;
    gap: 8px;
	float: right;
    margin-top: 8px;
}

.info-imdb {
    background: #f5c518;
    color: #000;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-size: 18px;
    display: flex;
    align-items: center;
	text-decoration: none;
}

.info-imdb img {
    height: 22px;
    margin-right: 3px;
}

.info-plex {
    display: flex;
    align-items: center;
}

.info-plex img {
    height: 30px;
    object-fit: contain;
}

.info-imdb, .info-plex{
	transition: all 0.2s ease;
}

.info-imdb:hover, .info-plex:hover{
	transform: scale(0.9);
}

/* film.php - film-box > full-info - actor-line*/

.actors-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 30px 0 10px;
}

.actor {
    flex: 1;
    text-align: center;
}

.actor img {
    width: 100%;
    max-width: 200px;
    padding: 5px 10px;
    box-sizing: border-box;
    border-radius: 50%;
    object-fit: cover;
	aspect-ratio: 1 / 1; 
}

.actor-placeholder {
    width: 100%;
    padding: 5px 10px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #ccc;
    color: #333;
    font-weight: bold;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto; 
}

.actor-name {
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #222;
}

.actor-character {
    font-style: italic;
    color: #666;
    font-size: 12px;
}


/* film.php - film-box > full-info - toggle-back */

.toggle-back {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
	padding: 8px 30px;
	border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-back i {
    font-size: 16px;
    transition: all 0.2s;
    padding: 12px;
}

/* film.php - film-box > film-actions */

.film-actions {
    display: flex;
    width: 100%;
	height: 83px;
}

.film-actions button {
    flex: 1;
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	text-transform: uppercase;
    letter-spacing: 2px;
}

.film-actions button i {
    font-size: 22px;
	margin-bottom: 8px;
}


.film-actions button:hover {
    opacity: 0.9;
}

.btn-afvis {
    background: #d9534f;
}

.btn-watchlist {
    background: #5cb85c;
}

.btn-set {
    background: #6c757d;
}

.btn-skip {
    background: #f0ad4e;
}

/* film.php - film-box > modal */

.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: #fff;
    padding: 50px 70px;
    border-radius: 10px;
    width: auto;
    max-width: 60%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
}

.modal-content h3 {
    margin-top: 0;
}

.modal-content button {
    margin: 5px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 28px;
    margin: 10px 0;
}

.star-rating i {
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating i.gold {
    color: gold;
}

#stjerner-container .stjerne {
    cursor: pointer;
    font-size: 24px;
    margin: 5px;
    color: #ccc;
    transition: color 0.2s;
}

#stjerner-container .stjerne.active {
    color: #f5c518;
}

#stjerner i {
    cursor: pointer;
    font-size: 35px;
    padding: 2px;
}

.gold {
    color: #f5c518;
}

.gray {
    color: #ccc;
}

#anbefal-knap {
    padding: 8px 15px;
    font-size: 16px;
    cursor: pointer;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s;
    color: #000;
}

#anbefal-knap:hover {
    background: #ddd;
    color: #000;
}

#anbefal-knap.active {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
}

.btn-action {
    padding: 8px 15px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background 0.3s;
    color: #fff;
}

.btn-action.btn-gem {
    background: #4caf50;
}

.btn-action.btn-gem:hover {
	background-color: #6ec071;
}

.btn-action.btn-annuller {
    background: #d9534f;
}

.btn-action.btn-annuller:hover {
	background-color: #e27c79;
}

/* profile.php */

.profile-section {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.profile-picture-box {
    margin-bottom: 15px;
}

.profile-picture-container {
    position: relative;
    margin: 20px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.edit-overlay label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 100%;
    height: 100%;
    text-align: center;
	margin-top: 0;
}

.edit-overlay i {
    font-size: 20px;
    margin-bottom: 5px;
}

.profile-picture-container:hover .edit-overlay {
    opacity: 1;
}

.language-flags {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;   /* Centrer vandret */
    align-items: center;       /* Centrer lodret */
}

.flag-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;    /* Giver ens knapstørrelse */
    height: 40px;
    border-radius: 50%;
}

.flag-btn img {
    width: 32px;
    height: 32px;
}

.flag-btn.selected,
.flag-btn:hover {
    opacity: 1;
    outline: 1px solid #666;
}

.text-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: #3366cc;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #3366cc;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.text-link:hover {
    color: #224488;
}

.text-link:hover::after {
    transform: scaleX(1);
}

.profile-edit-form {
    margin-top: 20px;
    text-align: center;
}

.profile-edit-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}

.profile-edit-form input[type="text"],
.profile-edit-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    text-align: center;
}

.profile-edit-form input[type="submit"] {
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.profile-edit-form input[type="submit"]:hover {
    background-color: #333;
}

.success-message {
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.edit-profile-btn {
    margin-bottom: 15px;
    font-weight: bold;
    display: inline-block;
}

.form-buttons {
    margin-top: 15px;
}

.p-username{
	text-transform: uppercase;
	font-size: 20px;
	margin-bottom: 0;
}

.p-mail{
	margin-top: 8px;
}

.p-skift-kodeord{
	margin-top: 0;
}

.p-slet-konto{
	margin-top: 15px;
}

/* skiftkodeord.php */

.password-hint {
    font-size: 0.85em;
    color: #555;
    margin-top: -8px;
    margin-bottom: 10px;
    display: block;
}

/* skiftkodeord.php */

.password-hint {
    font-size: 0.85em;
    color: #555;
    margin-top: -8px;
    margin-bottom: 10px;
    display: block;
}

/*mobile*/

.is-mobile.is-portrait{
	
	.loading {
		font-size: 14px;
	}

	.spinner {
		width: 40px;
		height: 40px;
	}
	
	.login-box{
		margin: 15px;
	}
	
	/*nav*/

	#side-menu{
		width: 250px;
	}
	
	#side-menu li a{
		font-size: 12px;
		padding: 15px 10px;
	}
	
	.nav-profile-pic{
		height: 30px;
		width: 30px;
	}
	
	#side-menu i{
		width: 30px;
		font-size: 20px;
	}
	
	.nav-profile-link span{
		line-height: 30px;
	}
	
	/*roulettes*/
	
	.card-title{
		font-size: 20px;
	}
	
	.card-actions button{
		font-size: 12px;
	}
	
	/*roulette*/
	
	.film-box{
		margin: 10px;
	}
	
	.overlay{
		padding: 100px 20px 15px;
	}
	
	.expanded{
		padding: 20px;
	}
	
	.film-actions{
		height: 60px;
	}
	
	.film-actions button{
		font-size: 10px;
		letter-spacing: 1px;
	}
	
	.film-actions button i{
		font-size: 16px;
	}
	
	/*modal*/
	
	.modal-content{
		padding: 30px 50px;
	}
	
	/*top-bar*/
	
	.main-content .top-bar .center-bar{
		gap: 10px;
	}
	
	.main-content .top-bar button{
		padding: 8px 14px;
	}
	
	.main-content .top-bar select#sortering{
		font-size: 14px;
		border-color: #ddd;
		margin-top: 4px;
		padding: 2px;
	}
	
	.filter-panel.to-kolonner{
		grid-template-columns: 1fr;
		gap: 0;
		padding: 6px 16px 16px 16px;
	}
	
	.filter-panel{
		grid-template-columns: 1fr;
		gap: 0;
		padding: 6px 16px 16px 16px;
	}
	
	.filter-section h4{
		font-size: 14px;
		margin: 10px 0 5px;
	}
	
	#genre-filter-list{
		gap: 4px;
	}
	
	#genre-filter-list label{
		font-size: 10px;
		gap: 2px;
		padding: 2px 6px 2px 4px;
	}	
	
	#clear-genres{
		margin-top: 10px;
		padding: 4px 10px;
		font-size: 10px;
	}
	
	.filter-section{
		font-size: 12px;
	}
	
	.filter-panel input[type=checkbox]{
		transform: scale(0.8);
	}
	
	.rating-badge{
		font-size: 10px;
		padding: 3px 6px;
	}
	
	/*lister*/
	
	.main-content .film-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	/*watch now*/
	
	.watch-now-container{
		margin: 10px;
	}
	
	.skip-button{
		letter-spacing: 1px;
		height: 60px;
	}
	
	.skip-button i{
		font-size: 16px;
	}
	
	
	/*battles*/
	
	.battle-container{
		padding: 0;
		gap: 10px;
	}
	
	.ranklist-item{
		grid-template-columns: 70px 1fr 40px;
	}
	
	.ranklist-info{
		font-size: 12px;
	}
	
	.ranklist-info p.rank-title{
		font-size: 16px;
	}
	
	.ranklist-info p.rank-title span{
		font-size: 14px;
		margin-left: 4px;
	}
	
	.ranklist-score{
		margin: 5px 0px;
		gap: 5px;
	}
	
	.ranklist-rank{
		font-size: 16px;
	}
	
	.plex-link, .reset-rank-button{
		font-size: 10px;
		padding: 4px 8px;
	}
	
	.plex-link img{
		height: 12px;
	}
}


/* .hidden elementer */

.hidden{
	display: none;
}