@import url('https://fonts.cdnfonts.com/css/algeria');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Algerian';
    src: url('fonts/Algerian_Regular/Algerian_regular.ttf') format('truetype');
}

body{
    background-color: #222327;
    width: 100%;
    /*height: 8000px;*/
}

/*HEADER*/
.fejlec{
    position:fixed;
    top: 0;
    background-color: #17181b;
    width: 100%;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
}

#home{
    flex: 1;
}

#home img{
    width: 175px;
}

.search-bar {
    flex: 0 0 40%;              /* fix helyet foglal a flex sorban */
    display: flex;
    justify-content: center;
    position: relative;         /* a dropdown ehhez igazodik */
}

.search-inner {
    width: 100%;
    max-width: 420px;
    position: relative;
}

.search-bar form {
    display: flex;
    align-items: center;
    background-color: #222327;
    border-radius: 999px;
    padding: 4px 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.search-bar input {
    flex: 1;
    background-color: transparent;
    border: none;
    color: #fff;
    padding: 6px 10px;
    font-size: 14px;
    outline: none;
}

/*.search-bar button{
    display: none;
}*/

.search-bar button {
    border: none;
    background-color: #17181b; 
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
}

.search-bar button:hover {
    background-color: #c28635;
}

#search-results {
    position: absolute;
    top: 100%;                  /* közvetlenül a form alá kerül */
    left: 0;
    width: 100%;
    margin-top: 6px;
    background-color: #17181b;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

#search-results ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#search-results li {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

#search-results li:last-child {
    border-bottom: none;
}

#search-results img {
    height: 60px;
    margin-right: 10px;
    border-radius: 6px;
}

#search-results a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

#search-results span {
    font-size: 16px;
}


nav{
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

nav a{
    margin-inline-start: 25px;
    text-decoration: none;
    color: white;
    font-family: Algerian;
    padding-bottom:20px;
    padding-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: normal;
}

nav a:hover{
    box-shadow: 2px 2px 10px rgb(180, 173, 173);
}

/*nav:last-child{
    margin-right: 30px;
}*/

.drop-menu{
    position: relative;
    z-index: 2000;
}

.drop-menu a{
    display: inline-block;
    vertical-align: middle;
}

.drop-menu:hover .submenu{
    display: block;
}

.submenu{
    display: none;
    position: absolute;
    top: 100%;
    left: -63px;
    min-width: 100px;
    z-index: 5000;
}

.submenu a{
    background-color: #17181b;
    width: 150px;
}

.submenu a:hover{
    box-shadow: 2px 2px 10px rgb(180, 173, 173);
}

/*SLIDESHOW*/

.slideshow-container-main{
    max-width: 1000px;
    margin: auto;
    margin-top:100px;
    position: relative;
    width: 90%;
}

.slides-main{
    display: none;
    justify-content: center;

}

.slides-main img{
    max-width: 1000px;
    max-height: 562.5px;
    display: flex;
    border-radius: 50px;
    width: 90%;
    margin: auto;
}

.elozo:hover, .kovetkezo:hover{
    background-color: rgba(0, 0, 0, 0.8);
}

.active, .dot:hover{
    background-color: #222327;
}

.elozo, .kovetkezo{
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    padding: 16px;
    color: #975e17;
    background-color: rgba(0, 0, 0, 0.5);
    font-weight: bold;
    font-size: 18px;
    transition: 0.5s ease;
    border-radius: 0 3px 3px 0;
}

.kovetkezo{
    right: 0;
    border-radius: 3px 0 0 3px;
}


.fade{
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade{
    from {opacity: .4}
    to {opacity: 1}
}

/*KERESÉS*/

/* Alap keresési találatok megjelenítése asztali nézetben */
.search-results {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 100px auto 40px;
}

/* Keresési visszajelzés */

#searchHeader {
    color: #ccc;
    margin: 20px 0;
    width: 90%;
    text-align: left;
}

/* Nincs találat üzenet */
#noResultsMsg {
    color: #ccc;
    font-style: italic;
    margin: 20px 0;
    width: 90%;
    text-align: left;
}

/* Egy találati doboz széles, sorban */
.result-box {
    width: 100%;
    text-align: center;
    padding: 15px 25px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    gap: 25px;
    background-color: #17181b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6)
}

/* Linkek stílusa */
.result-box a{
    text-decoration: none;
}

/* Kép mérete asztali nézetben */
.result-img img{
    max-width: 350px;
    border-radius: 5px;
}

/* Szöveg doboz */
.result-data {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: justify;
}

/* Cím */
.result-title{
    font-family: Algerian;
    color: #975e17;
    font-size: 1.8rem;
}

/* Leírás */
.result-description {
    font-size: 1rem;
    line-height: 1.4;
    color: #ccc;
}

/* Olvass tovább link */
.read-more {
    color: #2196f3;
    font-weight: bold;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* ========= MOBIL NÉZET ========= */

@media (max-width: 805px) {
    .search-results {
        width: 95%;
        margin: 40px auto 40px;
    }

    #searchHeader {
        margin: 20px auto;
    }

    #noResultsMsg {
        margin: 20px auto;
    }

    .result-box {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
    }

    .result-img img {
        max-width: 100%;
        height: auto; /* Magasság automatikus a szélességhez */
        border-radius: 10px;
    }

    .result-title {
        font-size: 1.4rem;
    }

    .result-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .read-more {
        font-size: 0.95rem;
    }
}

/* Keresőmező elrejtése, ha kitakarja a menüpontokat */
@media (max-width: 1030px){
    .search-bar input{
        width: 75px;
    }
}

/* Mobilon legyen kényelmes a görgetés, ne legyen túl szoros */

@media (max-width: 480px) {
    .result-title {
        font-size: 1.2rem;
    }

    .result-description {
        font-size: 0.9rem;
    }

    .read-more {
        font-size: 0.9rem;
    }
}



/******************************************************************/
/*FEATURED*/
.featured{
    margin: 50px;
}

.featured h3{
    font-family: Algerian;
    color: white;
    font-weight: normal;
}

/* Swiper konténer styling */
.seriesSwiper, 
.movieSwiper, 
.favoritesSwiper,
.genreSwiper, 
.continueSwiper,
.playlistSwiper {
    width: 100%;
    height: 200px;
    background-color: #17181b;
    padding: 10px;
    margin-top: 10px;
    position: relative;
    border-radius: 10px;
    box-sizing: border-box;
}

.pl-mosaic,
.pl-fallback-empty {
    border-radius: 15px;
    overflow: hidden;
}

/* A wrapper, azaz a swiper-wrapper alapból flex display-t kap, nem kell átállítani */
/* Ha szükséges: align-items center a swiper-wrapper helyett inkább az egyes slide-okon*/

/* Slide-ok stylingja */
.seriesSwiper .swiper-slide,
.movieSwiper .swiper-slide,
.favoritesSwiper .swiper-slide,
.genreSwiper .swiper-slide,
.continueSwiper .swiper-slide,
.playlistSwiper .swiper-slide {
    flex-shrink: 0;
    width: 280px; /* vagy max-width: 180px; attól függően, hogy akarod */
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative; /* Ha szükséges, hogy a képek pozicionálása helyes legyen */
}

.seriesSwiper .swiper-slide:first-child,
.movieSwiper .swiper-slide:first-child,
.favoritesSwiper .swiper-slide:first-child,
.genreSwiper .swiper-slide:first-child,
.continueSwiper .swiper-slide:first-child,
.playlistSwiper .swiper-slide:first-child {
    margin-left: 10px;
}

/* Képek stílusa */
.seriesSwiper .swiper-slide img,
.movieSwiper .swiper-slide img,
.favoritesSwiper .swiper-slide img,
.genreSwiper .swiper-slide img,
.continueSwiper .swiper-slide img,
.playlistSwiper .swiper-slide img  {
    max-height: 160px;
    width: 100%;
    border-radius: 15px;
    display: block;
    transition: box-shadow 0.5s ease, max-height 0.5s ease;
    cursor: pointer;
    object-fit: cover;
}

.playlistSwiper .swiper-slide img {
    border-radius: 0;
}

.playlistSwiper .pl-mosaic{
    transition: box-shadow 0.5s ease;
}

.seriesSwiper .swiper-slide img:hover,
.movieSwiper .swiper-slide img:hover,
.favoritesSwiper .swiper-slide img:hover,
.genreSwiper .swiper-slide img:hover,
.continueSwiper .swiper-slide img:hover,
.playlist-card .pl-mosaic:hover,
.playlist-card .pl-fallback-empty:hover {
    box-shadow: 0px 0px 5px 5px rgb(180, 173, 173);
    max-height: 180px;
}

/* Navigáció gombok (prev/next) */
.seriesSwiper .swiper-button-prev,
.seriesSwiper .swiper-button-next, 
.movieSwiper .swiper-button-prev,
.movieSwiper .swiper-button-next,
.favoritesSwiper .swiper-button-prev,
.favoritesSwiper .swiper-button-next,
.genreSwiper .swiper-button-prev,
.genreSwiper .swiper-button-next,
.continueSwiper .swiper-button-prev,
.continueSwiper .swiper-button-next,
.playlistSwiper .swiper-button-prev,
.playlistSwiper .swiper-button-next {
    position: absolute;
    top: 50%;
    left: 0;                               /* prev */
    right: auto;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;                 /* Swiper default: 44px, állíthatod */
    height: 44px;
    margin: 0;
    padding: 0;
    color: #975e17;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;         /* Ha kör nyíl kell */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;            /* Nyíl ikon mérete */
}

.seriesSwiper .swiper-button-prev,
.movieSwiper .swiper-button-prev,
.favoritesSwiper .swiper-button-prev,
.genreSwiper .swiper-button-prev,
.continueSwiper .swiper-button-prev,
.playlistSwiper .swiper-button-prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.seriesSwiper .swiper-button-next,
.movieSwiper .swiper-button-next,
.favoritesSwiper .swiper-button-next,
.genreSwiper .swiper-button-next,
.continueSwiper .swiper-button-next,
.playlistSwiper .swiper-button-next {
    left: auto;
    right: 0;
    border-radius: 3px 0 0 3px;
}

.seriesSwiper .swiper-button-prev:hover,
.seriesSwiper .swiper-button-next:hover,
.movieSwiper .swiper-button-prev:hover,
.movieSwiper .swiper-button-next:hover,
.favoritesSwiper .swiper-button-prev:hover,
.favoritesSwiper .swiper-button-next:hover,
.genreSwiper .swiper-button-prev:hover,
.genreSwiper .swiper-button-next:hover,
.continueSwiper .swiper-button-prev:hover,
.continueSwiper .swiper-button-next:hover,
.playlistSwiper .swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.seriesSwiper .swiper-button-prev:after,
.seriesSwiper .swiper-button-next:after,
.movieSwiper .swiper-button-prev:after,
.movieSwiper .swiper-button-next:after,
.favoritesSwiper .swiper-button-prev:after,
.favoritesSwiper .swiper-button-next:after,
.genreSwiper .swiper-button-prev:after,
.genreSwiper .swiper-button-next:after,
.continueSwiper .swiper-button-prev:after,
.continueSwiper .swiper-button-next:after,
.playlistSwiper .swiper-button-prev:after, 
.playlistSwiper .swiper-button-next:after {
    font-size: 24px;          /* Swiper gyári ikonméret */
    font-weight: bold;
}

/* Pontozás (pagination) ha használod */
.seriesSwiper .swiper-pagination,
.movieSwiper .swiper-pagination,
.favoritesSwiper .swiper-pagination,
.genreSwiper .swiper-pagination,
.continueSwiper .swiper-pagination,
.playlistSwiper .swiper-pagination {
    bottom: 8px !important; /* Lent kicsit a konténer alján */
}

/* Resume progress */
.swiper-slide a{
    text-decoration: none;
}

.swiper-slide a .progress{
    text-decoration: none;
    color: #ccc;
    margin-top: 10px;
    text-align: center;
}

.playlist-slide {
    position: relative;
    background: #17181b;
    border-radius: 10px;
    overflow: hidden;
}

.playlist-link img {
    cursor: pointer;
}

.playlist-caption {
    margin-top: 10px;
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
}

.playlist-slide-thumb {
    width: 100%;
}

.pl-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.pl-fallback-empty {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111116;
    color: #aaa;
    font-size: 0.8rem;
}

.pl-fallback-empty img {
    max-width: 60%;
    height: auto;
    margin-bottom: 6px;
    object-fit: contain;
}

/* Reszponzív magasságigény */
@media (max-width: 805px) {
    .seriesSwiper, .movieSwiper, .favoritesSwiper, .genreSwiper, .continueSwiper, .plyalistSwiper {
        height: 200px;
        padding: 5px;
    }
    .seriesSwiper .swiper-slide img:hover,
    .movieSwiper .swiper-slide img:hover,
    .favoritesSwiper .swiper-slide img:hover,
    .genreSwiper .swiper-slide img:hover,
    .continueSwiper .swiper-slide img:hover,
    .playlistSwiper .swiper-slide img:hover {
        max-height: 170px;
    }
}

/*******************************************************************/


/*SOROZAT/FILM OLDAL*/

.series-content, .movies-content{
    margin: auto;
    margin-top: 100px;
    width: 80%;
}

.series-content h1, .movies-content h1{
    margin-top: 10px;
    color: #975e17;
    font-family: Algerian;
    max-width: 300px;
}

.series-item, .movies-item{
    display: flex;
    flex-flow: row;
    align-items: center;
    text-align: justify;
}

.series-item img, .movies-item img{
    max-width: 300px;
    margin-right: 50px;
}

.slides-genres img:hover, .slides-favorites img:hover{
    box-shadow: 0px 0px 5px 5px rgb(180, 173, 173);
    max-height: 180px;
}

.series-item p, .movies-item p{
    color: white;
    font-family: 'Open Sans', sans-serif;
    max-width: 800px;
    font-size: 14pt;
}

.movie-data-head, .series-data-head{
    display: flex;
    flex-flow: row;
}

.series-data-head{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.series-head-row{
    display: flex;
    flex-direction: row;
    align-items: center;
}


.movie-title, .series-title{
    margin-right: 50px;
    width: 300px;
}

.movie-settings {
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    position: relative;
}

.series-settings {
    margin-left: 15px;
}

.play{
    display: flex;
    flex-flow: row;
}

.movie-data-main, .series-data-main{
    margin-top: 25px;
    display: flex;
    flex-flow: row;
}

.movie-info, .series-info{
    width: 300px;
    flex-shrink: 0;
    color: white;
    font-size: 15pt;
    margin-right: 50px;
}

.release, .directors, .actors, .imdb_rating{
    border-bottom: 1px solid;
    background-color: #17181b;
    padding: 10px;
    padding-inline-start: 5px;
    border-radius: 10px 10px 0px 0;
}
.movie-genre, .series-genre{
    border-bottom: 0;
    background-color: #17181b;
    padding: 10px;
    padding-inline-start: 5px;
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-flow: row;
}

.info-title{
    color:#975e17;
}

#play-trailer{
    padding: 10px;
    padding-right: 25px;
    padding-left: 25px;
    margin-top: 15px;
    margin-right: 10px;
    color: white;
    background-color: #17181b;
    border-radius: 10px;
    font-family: Algerian;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

#play{
    padding: 10px;
    padding-right: 25px;
    padding-left: 25px;
    margin-top: 15px;
    margin-right: 10px;
    background-color: #975e17;
    color: #17181b;
    border-radius: 10px;
    font-family: Algerian;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

#play-trailer:hover, #play:hover, #play:focus{
    box-shadow: 2px 2px 10px rgb(180, 173, 173);
    transform: translateY(-0.25em);
}

/* Hozzáadás lejátszási listához – movies.php */

.playlist-add-wrapper {
    margin-top: 8px;
    position: relative;
    display: inline-block;
}

.playlist-add-toggle {
    background-color: #17181b;
    color: white;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 10px;
}

.playlist-add-toggle:hover {
    box-shadow: 0 0 8px #975e1730;
}

.playlist-add-menu {
    position: absolute;
    top: 100%;          /* közvetlenül a gomb alatt */
    left: 0;
    z-index: 20;
    background: #191a1d;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px;
    margin-top: 4px;
    width: 100%;
    max-width: none;
    display: none;

}

.playlist-add-new {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.playlist-add-new input[type="text"] {
    flex: 1 1 auto;
    background: #111116;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 5px 8px;
    color: #f5f5f5;
    font-size: 0.85rem;
    width: 50%;
}

.playlist-add-new button {
    background: #975e17;
    color: #fff8e4;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

.playlist-add-list {
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 8px;
    border-top: 1px solid #333;
    padding-top: 6px;
}

.playlist-add-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 4px;
    cursor: pointer;
}

.playlist-add-list input[type="checkbox"] {
    accent-color: #975e17;
}

.playlist-add-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.playlist-add-actions button {
    background: #975e17;
    color: #fff8e4;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
}

.playlist-add-actions button:hover {
    background: #c28635;
}

.playlist-add-message {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #ffe1a6;
}

#seasonDropdown{
    margin-top: 15px;
    max-width: 100px;
    padding: 10px;
    margin-right: 15px;
    background-color: #17181b;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
}

#seasonDropdown:hover, #seasonDropdown option:hover{
    cursor: pointer;
}

/* -------- Mobil nézet kezdete -------- */
@media (max-width: 805px) {

    /* A fő tartalomtartó szélessége és margója */
    .movies-content, .series-content {
        width: 85% !important;
        margin: 40px auto; /* hogy ne csússzon a fix header alá */;
    }

    /* Minden item egymás alá kerül */
    .movies-item, .series-item {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* Kép szélessége mobilon legyen max 100%, hogy a sávot kitöltse */
    .movies-item img, .series-item img {
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        margin-right: 0 !important; /* eltávolítjuk az oldalsó margót */
        border-radius: 15px;
        height: auto;
        object-fit: cover;
    }

    /* Szöveg rész, teljes szélesség */
    .movies-item p, .series-item p {
        max-width: 100% !important;
        font-size: 14pt;
        line-height: 1.4;
    }

    /* Film/adattartó fej része is egymás alá kerül */
    .movie-data-head, .series-data-head {
        flex-direction: column !important;
        gap: 15px;
        margin-top: 20px;
    }

    /* Cím teljes szélességű legyen */
    .movie-title, .series-title {
        width: 100% !important;
        margin-right: 0 !important;
        display: flex;
        justify-content: center;
    }

    /* Lejátszó, beállítások stb egymás alá */
    .movie-settings, .series-settings {
        flex-direction: row !important; /* mobilon sorba teheted, vagy akár oszlopba */
        flex-wrap: wrap;
        gap: 10px;
        display: flex;
        justify-content: center;
    }

    .add-favorite{
        width: 45px;
    }

    /* Játék gombok mérete picit nagyobb legyen érintéshez */
    #play, #play-trailer {
        padding: 12px 30px !important;
        font-size: 1.1rem;
        margin-top: 10px !important;
    }

    /* Áttekinthetőséghez kisebb margó */
    .movie-data-main, .series-data-main {
        flex-direction: column !important;
        margin-top: 15px !important;
    }

    /* Film-infók teljes szélességben mobilon */
    .movie-info, .series-info {
        width: 100% !important;
        margin-right: 0 !important;
        font-size: 15pt;
    }

    /* ADOTT BLOKKOK SZÉLESSÉGÉNEK KEZELÉSE */
    .release, .directors, .actors, .imdb_rating, .movie-genre, .series-genre {
        padding-inline-start: 10px;
    }

    /* Egyéb apróbb finomítások */
    body {
        font-size: 15px;
        line-height: 1.5;
    }

}

/* Értékelés */

.rating {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.rating a{
    color: #ccc;
}

.rating a:hover{
    font-weight: bold;
}

.rating .stars a {
    text-decoration: none;
    font-size: 28px;
    color: gray;
    cursor: pointer;
}
.rating .stars a.filled {
    color: #ffa500;
}

.avg-rating, .user-rating{
    color: white;
}

/***********/




/*KEDVENCEKHEZ ADÁS*/

#favorite-btn {
background-color: #17181b;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    border-radius: 25px;
}
#favorite-btn:focus {
  outline: none; /* vagy egyéni fókusz stílus */
}

.add-favorite{
    margin-top: 10px;
    margin-right: 15px;
}

.add-favorite label {
    background-color: #17181b;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    border-radius: 25px;
    /*box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;*/
    color: #d30606;
}

.add-favorite input {
    display: none;
}



/* Epizódok listája */

.movie-container{
    display: none;
}

#videosList{
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#videosList p{
    color: #ccc;
    font-weight: bold;
    margin-top: 20px;
}

#videosList img{
    margin-right: 25px;
    max-width: 250px;
    width: 200px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 15px;
    transition: width 0.5s ease, box-shadow 0.5s ease;
}

#videosList img:hover{
    box-shadow: 0px 0px 5px 5px rgb(180, 173, 173);
    width: 225px;
}

#videosList h3{
    color: white;
    font-weight: normal;
}

/* -------- Mobil nézet kezdete -------- */
@media (max-width: 805px) {
    .episode:first-child {
        margin-top: 20px; /* Az első epizód ne legyen túl nagy margóval */
    }
}


/*REGISZTRÁCIó-BEJELENTKEZÉS*/

.register-wrapper,
.login-wrapper,
.forgot-password-wrapper,
.reset-password-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: space-around;
    align-items: center;
    height: calc(100vh - 70px); /* Adjusted for fixed header height */
    width: 100%;
}

.register-content,
.login-content,
.forgot-password-content,
.reset-password-content {
    background-color: #17181b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.register-content h2,
.login-content h2,
.forgot-password-content h2,
.reset-password-content h2 {
    color: white;
    font-family: Algerian;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    color: white;
    display: block;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.register-content button[type="submit"],
.login-content button[type="submit"],
.forgot-password-content button[type="submit"],
.reset-password-content button[type="submit"] {
    padding: 10px 25px;
    color: white;
    background-color: #975e17;
    border-radius: 5px;
    font-family: Algerian;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.register-content button[type="submit"]:hover,
.login-content button[type="submit"]:hover,
.forgot-password-content button[type="submit"]:hover,
.reset-password-content button[type="submit"]:hover {
    box-shadow: 0px 0px 5px 5px rgb(180, 173, 173);
    transform: translateY(-0.25em);
}


.errors, .success {
    background-color: #ff4d4d;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.success {
    background-color: #4CAF50;
}

.reg-login-swap{
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.reg-login-swap a{
    color: white;
}

.reg-login-swap a:visited{
    color: white;
}

/*******/

.genres-content h2, .favorites h2{
    margin-top: 50px;
    font-family: Algerian;
    color: white;
    font-weight: normal;
}

.slideshow-container-genres, .slideshow-container-favorites {
    width: 100%;
    height: 200px;
    background-color: #17181b;
    padding: 10px;
    margin: auto;
    margin-top: 10px;
    position: relative; 
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 10px;
}

.slides-genres-wrapper, .slides-favorites-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: max-content;
}

.slides-genres, .slides-favorites  {
    flex: 0 0 auto;
    margin-right: 10px;
}

.slides-genres img, .slides-favorites img {
    max-height: 160px;
    border-radius: 15px;
    display: block;
}

.prev-genres, .next-genres, .next-favorites, .prev-favorites {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: #975e17;
    background-color: rgba(0, 0, 0, 0.5);
    font-weight: bold;
    font-size: 18px;
    transition: 0.5s ease;
    user-select: none;
    transform: translateY(-50%);
}

.prev-genres, .prev-favorites {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next-genres, .next-favorites  {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-genres:hover, .next-genres:hover, .prev-favorites:hover, .next-favorites:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/*DASHBOARD*/

.profile-main{
    display: flex;
    height: 80vh;
    margin: 100px 300px 0 300px;
}

.sidebar{
    width: 30%;
    background-color: #17181b;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.content{
    width: 80%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.menu-item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    cursor: pointer;
    color: white;
}

.menu-item:hover {
    background-color: #975e17;
}

.menu-item.active {
    background-color: #975e17;
}

.profile-picture{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.profile-picture img{
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
}

.profile-picture input[type="file"]{
    display: none;
}

.profile-picture label{
    cursor: pointer;
    background-color: #17181b;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
}

.profile-picture label:hover{
    background-color: #333;
}


/* PROFIL */

.profile-page {
  max-width: 900px;
  margin: 100px auto 40px auto;
  font-family: Arial, sans-serif;
  color: #f5f5f5;
  background: #191a1d;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 6px 48px #2227;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #975e17;
}


.profile-info {
  flex: 1;
}

.profile-name {
  margin: 0;
  font-size: 2.2rem;
  color: #ffe1a6;
}
.profile-status {
  background: #975e17;
  color: #fff8e4;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: .97rem;
  margin-right: 8px;
}

.profile-status-link {
    text-decoration: none;
    display: inline-block;
}

.profile-status-link:hover{
    background: #c28635;
    color: #fff;
}

.profile-expiry {
  background: #2e2c23;
  color: #ffe1a6;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: .95rem;
}
.profile-actions {
  margin-top: 75px;
}

.upload-btn {
  margin-top: 12px;
  background: #222c;
  color: #ffa94d;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s;
}

.request-btn, .settings-btn, .logout-btn {
  background: #222c;
  color: #ffa94d;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.request-btn a, .settings-btn a, .logout-btn a, .upload-btn a {
  color: inherit;
  text-decoration: none;
}

.request-btn:hover, .request-btn:hover, .settings-btn:hover, .logout-btn:hover, .upload-btn:hover {
  background: #975e17;
  color: #fff;
}

.profile-summary {
  margin: 18px 0 10px 0;
  background: #232427;
  border-radius: 6px;
  padding: 10px;
  color: #ffdbac;
  font-size: 1.08rem;
}

.profile-rows {
  margin-bottom: 20px;
}

.profile-section {
  margin: 22px 0;
}

.profile-section h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #ffa94d;
}

.profile-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.content-card {
  background: #242529;
  border-radius: 11px;
  min-width: 155px;
  max-width: 185px;
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe1a6;
  font-size: 1.02rem;
  box-shadow: 0 2px 10px #2227;
  cursor: pointer;
  padding: 8px;
  text-decoration: none;
}
.content-card:hover {
  box-shadow: 0 4px 16px #975e1730;
  background: #1e2024;
}
.profile-lists {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
}
.profile-lists li {
  background: #2d2e33;
  padding: 8px 20px;
  border-radius: 6px;
  color: #ffd79c;
}

.profile-settings {
  margin-top: 38px;
  background: #26272a;
  border-radius: 8px;
  padding: 18px 16px;
  color: #ffd297;
  font-size: 1.03rem;
}

.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.continue-card {
    position: relative;
}

.continue-remove,
.playlist-remove {
    position: absolute;
    right: 6px;
    top: 10px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.continue-remove:hover,
.playlist-remove:hover {
    background: #c40c0c;
}

.remove-text {
    display: none;
    position: absolute;
    right: 42px;
    top: 6px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 15px;
    white-space: nowrap;
}

.continue-remove:hover .remove-text,
.playlist-remove:hover .remove-text {
    display: block;
}
    /* Saját listák */
    .playlist-card {
        position: relative;
    }

    .playlist-card > a {
        display: block;
        color: inherit;
    }

    .playlist-thumb {
        width: 100%;
    }

    .playlist-meta {
        margin-top: 10px;
        text-align: center;
        color: #ccc;
        font-size: 0.9rem;

    }

    .playlist-meta:hover{
        text-decoration: underline;
    }

    .pl-mosaic {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 1fr;
        width: 100%;
        aspect-ratio: 16 / 9;      /* hogy közel olyan arányú legyen, mint a többi poszter */
    }

    .pl-mosaic-cell img {
        height: 100%;
    }

    /* üres lista placeholder */
    .pl-fallback-empty {
        width: 100%;
        aspect-ratio: 16 / 9;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #111116;
        color: #aaa;
        font-size: 0.8rem;
    }

    .playlist-create-form {
        margin-top: 10px;
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .playlist-create-form input[type="text"] {
        background: #191a1d;
        border: 1px solid #333;
        border-radius: 6px;
        padding: 6px 8px;
        color: #f5f5f5;
        font-family: 'Open Sans', sans-serif;
        font-size: 0.9rem;
        height: 34px;          /* fix magasság, ne legyen „doboz” */
        width: auto;           /* ne nyúljon túl */
        min-width: 0;          /* engedje zsugorodni */
    }

    .playlist-create-form input[type="text"]::placeholder {
        color: #777;
    }

    .playlist-create-form input[type="text"]:focus {
        outline: none;
        border-color: #975e17;
        box-shadow: 0 0 0 1px #975e17aa;
    }

    .playlist-create-form button[type="submit"] {
        height: 34px;
        padding: 0 14px;
        background-color: #975e17;
        color: #fff8e4;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-family: Algerian, sans-serif;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .playlist-create-form button[type="submit"]:hover {
        background-color: #c28635;
        box-shadow: 0 0 10px #975e1730;
        transform: translateY(-1px);
    }

    /* Mobil finomhangolás */
    @media (max-width: 805px) {
        .profile-lists{
            justify-content: center;
        }
        
        .playlist-create-form {
            flex-direction: column;
            align-items: stretch;
        }
        .playlist-create-form input[type="text"],
        .playlist-create-form button[type="submit"] {
            width: 100%;
        }
    }



    /* Jelszócsere */

    .pw-toggle-row {
    cursor: pointer;
    padding: 8px 0;
    border-radius: 6px;
    margin-top: 3px;
    transition: background 0.2s;
    }
    .pw-toggle-row:hover {
        background: #222325;
    }
    .pw-form-collapsible {
        padding: 16px 8px 6px 8px;
        background: #212127;
        border-radius: 5px;
        margin: 8px 0 0 0;
    }
    .pw-form-collapsible label {
        font-weight: bold;
        display: block;
        color: #ffd297;
    }
    .pw-form-collapsible input[type="password"] {
        width: 100%;
        padding: 7px;
        border-radius: 4px;
        margin-bottom: 12px;
        border: 1px solid #333;
        background: #191a1d;
        color: #fff;
    }
    .pw-form-collapsible button {
        background: #975e17;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 8px 20px;
        margin-top: 5px;
        cursor: pointer;
    }
    .pw-form-collapsible button:hover {
        background: #c28635;
    }

    .password-change {
        margin-top: 20px;
        background: #232427;
        border-radius: 8px;
        padding: 20px;
    }

    .password-change h4 {
        color: #ffa94d;
        margin-bottom: 10px;
    }

    .password-change label {
        font-weight: bold;
        color: #fff;
    }

    .password-change input[type="password"] {
        width: 100%;
        padding: 8px;
        margin-top: 4px;
        margin-bottom: 12px;
        border-radius: 4px;
        border: none;
    }

    .password-change button {
        background-color: #975e17;
        color: white;
        padding: 10px 18px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }

    .password-change button:hover {
        background-color: #c2873a;
    }

    /********/


.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 15px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #17181b;
    position: absolute;
    top: 67px;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 20px;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 0;
    font-size: 18px;
    margin: auto;
}

.search-bar-mobile {
    margin-top: 20px;
}

.search-bar-mobile input {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.search-bar-mobile button {
    padding: 5px 10px;
    border: none;
    background-color: #222327;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

/* Media Query */
@media screen and (max-width: 805px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 15px;
        top: 0px;
    }

    .search-bar {
        display: none;
    }

    .fejlec{
        justify-content: center;
        position: relative;
        height: 70px;
    }

    #home {
        flex: none;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #home img {
        width: 150px;
    }

    .slideshow-container-main {
        display: none;
    }

    .header{
        margin-bottom: 100px;
    }
}


.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-slider {
  display: flex;
  gap: 14px;
  overflow: hidden;
  flex: 1;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: #eee;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 10px;
  z-index: 10;
  font-size: 1.2rem;
  user-select: none;
  transition: background-color 0.3s ease;
}
.slider-arrow:hover {
  background-color: rgba(151, 94, 23, 0.8);
}
.slider-arrow.prev {
  left: 0;
}
.slider-arrow.next {
  right: 0;
}

.content-card img {
    width: 139px;
    height: 60%;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 4px;
    display: block; /* blokk szintű elemként a kártyában */
}
.content-card div {
    font-size: 0.9rem;
    text-align: center;
    color: #ffe1a6; /* ha kell, hogy a szöveg látható legyen */
}

/* Requests */
.request-modal {
    border: 1px solid #3a2a14;
    border-radius: 14px;
    padding: 0;
    width: min(520px, calc(100% - 32px));
    background: linear-gradient(180deg, #1f2024 0%, #17181b 100%);
    color: #f5f5f5;
    box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}

.request-modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.request-modal-form {
    padding: 24px 22px 20px 22px;
}

.request-modal-form h3 {
    margin: 0 0 16px 0;
    color: #ffa94d;
    font-size: 1.15rem;
    line-height: 1.4;
}

.request-modal-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #191a1d;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.request-modal-form input[type="text"]::placeholder {
    color: #777;
}

.request-modal-form input[type="text"]:focus {
    border-color: #975e17;
    box-shadow: 0 0 0 2px rgba(151, 94, 23, 0.25);
}

.request-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.request-submit-btn,
.request-cancel-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.request-submit-btn {
    background: #975e17;
    color: #fff8e4;
}

.request-submit-btn:hover {
    background: #c28635;
    box-shadow: 0 0 10px rgba(151, 94, 23, 0.2);
    transform: translateY(-1px);
}

.request-cancel-btn {
    background: #2a2b2f;
    color: #ffd79c;
}

.request-cancel-btn:hover {
    background: #3a3b41;
}

dialog#requestModal {
    margin: auto;
}

#requestFeedback {
  margin: 12px 0;
  min-height: 20px;
}

.success-msg {
  background: #2d5a2d;
  color: #c8f0c8;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: center;
}

.error-msg {
  background: #5a2d2d;
  color: #f0c8c8;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: center;
}

/* PLAYLIST.php */

.playlist-view {
    width: 80%;
    margin: 100px auto;
    color: #fff;
}

.playlist-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.playlist-item {
    position: relative;
    background: #17181b;
    border-radius: 10px;
    overflow: hidden;
    width: 200px;
}

.playlist-item img {
    width: 100%;
    display: block;
}

.playlist-item-info {
    padding: 8px 10px;
}

.playlist-item-info h2 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #f5f5f5;
}

.playlist-item-info .tag {
    font-size: 0.75rem;
    color: #ffe1a6;
}

.playlist-item {
    position: relative;
    background: #17181b;
    border-radius: 10px;
    overflow: hidden;
    width: 200px;
}

/* ADMIN.PHP */

.admin-page {
    background: #000;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    display: grid;
    gap: 20px;
    align-content: start;
    width: 75%;
    margin: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a, #333);
    border-radius: 10px;
    margin-top: 75px;
}

.admin-header a {
    text-decoration: none;
    color: #fff;
}

.admin-status {
    background: #ff6b35;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
}

.admin-section {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.desktop-section {
    color: #ffdbac;
    margin-bottom: 15px;
}

.admin-section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.admin-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-search-input {
    min-width: 320px;
    max-width: 420px;
    width: 100%;
    background: #191a1d;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 14px;
    color: #f5f5f5;
    outline: none;
}

.admin-search-input:focus {
    border-color: #975e17;
    box-shadow: 0 0 0 2px rgba(151, 94, 23, 0.25);
}

.admin-search-btn,
.admin-reset-btn {
    background: #975e17;
    color: #fff8e4;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.admin-search-btn:hover,
.admin-reset-btn:hover {
    background: #c28635;
}

.admin-users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-users-table thead {
    background: #2a2c31;
}

.admin-users-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #2a2c31;
    color: #ffdbac;
    box-shadow: 0 1px 0 #333;
}

.admin-users-table th,
.admin-users-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #333;
    color: #f5f5f5;
    white-space: nowrap;
}



.admin-users-table th {
    color: #ffdbac;
    font-size: 0.95rem;
}

.admin-users-table tbody tr {
    background: #202125;
}

.admin-users-table tbody tr:hover td {
    background: #292b31;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-admin {
    background: #7a1f1f;
    color: #ffd7d7;
}

.status-user {
    background: #2e2c23;
    color: #ffe1a6;
}

.status-premium {
    background: #975e17;
    color: #fff3d6;
}

.admin-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #2a2b30 0%, #1f2024 100%);
    border: 1px solid #4a3420;
    border-radius: 8px;
    color: #ffb25c;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: 
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-action-link:hover {
    background: linear-gradient(180deg, #975e17 0%, #7a4a10 100%);
    border-color: #c28635;
    color: #fff8e4;
    box-shadow: 0 0 12px rgba(151, 94, 23, 0.22);
    transform: translateY(-1px);
}

.admin-action-link:active {
    transform: translateY(0);
    box-shadow: none;
}

.admin-action-link:focus {
    outline: none;
}

.admin-action-link:focus-visible {
    box-shadow: 0 0 0 2px rgba(151, 94, 23, 0.28);
}

button.admin-action-link {
    appearance: none;
    -webkit-appearance: none;
    border-width: 1px;
}

.admin-users-box {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #333;
    background: #202125;
    position: relative;
}

.admin-load-more-wrap {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.admin-load-more-btn {
    background: #975e17;
    color: #fff8e4;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.admin-load-more-btn:hover {
    background: #c28635;
}

.admin-load-more-btn:disabled {
    background: #444;
    color: #bbb;
    cursor: not-allowed;
}

.admin-content-form {
    margin-top: 12px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form-group-full {
    grid-column: 1 / -1;
}

.admin-form-group label {
    color: #ffdbac;
    font-weight: bold;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    background: #191a1d;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 12px;
    color: #f5f5f5;
    outline: none;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: #975e17;
    box-shadow: 0 0 0 2px rgba(151, 94, 23, 0.25);
}

.admin-form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.admin-form-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.admin-save-btn {
    background: #975e17;
    color: #fff8e4;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.admin-save-btn:hover {
    background: #c28635;
}

.admin-feedback {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.admin-feedback-success {
    background: #2d5a2d;
    color: #c8f0c8;
    border-color: #3f7a3f;
}

.admin-feedback-error {
    background: #5a2d2d;
    color: #f0c8c8;
    border-color: #7a4040;
}

.admin-section-toggle {
    display: none;
}

.request-action-wrap{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.request-status-form {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0;
}

.request-action-wrap.is-editing .request-edit-toggle {
    display: none;
}

.request-action-wrap.is-editing .request-status-form {
    display: flex;
}

.request-inline-save-btn {
    padding: 8px 12px;
    min-height: 36px;
}

.request-status-select {
    background: #191a1d;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 10px;
    color: #f5f5f5;
    outline: none;
}

.request-status-select:focus {
    border-color: #975e17;
    box-shadow: 0 0 0 2px rgba(151, 94, 23, 0.25);
}

.request-status-új,
.request-status-folyamatban,
.request-status-teljesítve,
.request-status-elutasítva {
    font-size: 0.82rem;
}

.request-status-új {
    background: #7a5a1f;
    color: #ffe7b3;
}

.request-status-folyamatban {
    background: #1f4d7a;
    color: #d6ecff;
}

.request-status-teljesítve {
    background: #2d5a2d;
    color: #c8f0c8;
}

.request-status-elutasítva {
    background: #6a2222;
    color: #f3c3c3;
}

.multi-select-wrap {
    position: relative;
    width: 100%;
}

.multi-select-toggle {
    width: 100%;
    min-height: 42px;
    background: #191a1d;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 14px;
    color: #f5f5f5;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.multi-select-toggle:hover,
.multi-select-toggle:focus {
    border-color: #975e17;
    box-shadow: 0 0 0 2px rgba(151, 94, 23, 0.18);
    outline: none;
}

.multi-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    background: #202125;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
    padding: 8px;
    z-index: 100;
}

.multi-select-dropdown.open {
    display: block;
}

.multi-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #f5f5f5;
    cursor: pointer;
    transition: background 0.2s ease;
}

.multi-select-option:hover {
    background: #2a2b30;
}

.multi-select-option input[type="checkbox"] {
    accent-color: #975e17;
    transform: scale(1.05);
}

.multi-select-empty {
    color: #bbb;
    padding: 10px;
}

.multi-select-divider {
    height: 1px;
    background: #3a3b40;
    margin: 10px 4px;
}

.multi-select-add-new {
    padding: 8px;
}

.multi-select-add-new label {
    display: block;
    margin-bottom: 8px;
    color: #ffdbac;
    font-size: 0.9rem;
}

.multi-select-add-new input {
    width: 100%;
    background: #191a1d;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 12px;
    color: #f5f5f5;
    outline: none;
}

.multi-select-add-new input:focus {
    border-color: #975e17;
    box-shadow: 0 0 0 2px rgba(151, 94, 23, 0.18);
}

#newDirectorFields, .newActorFields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

#newDirectorFields input,
.new-director-input,
#newActorFields input,
.new-actor-input {
    width: 100%;
    background: #191a1d;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 12px;
    color: #f5f5f5;
    outline: none;
}

#newDirectorFields input:focus,
.new-director-input:focus,
#newActorFields input:focus,
.new-actor-input:focus {
    border-color: #975e17;
    box-shadow: 0 0 0 2px rgba(151, 94, 23, 0.18);
}

.add-director-field-btn,
.add-actor-field-btn {
    margin-top: 4px;
}

@media screen and (max-width: 805px) {
    .admin-page {
        padding: 12px;
        gap: 16px;
        width: 100%;
    }

    .admin-header {
        margin-top: 90px;
        padding: 16px;
        border-radius: 12px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .admin-section {
        padding: 14px;
    }

    .desktop-section {
        display: none;
    }

    .admin-section-top {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .admin-search-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search-input {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .admin-search-btn,
    .admin-reset-btn,
    .admin-save-btn,
    .admin-load-more-btn {
        width: 100%;
    }

    .admin-users-box {
        max-height: none;
        overflow: visible;
        border: none;
        background: transparent;
    }

    .admin-users-table,
    .admin-users-table thead,
    .admin-users-table tbody,
    .admin-users-table tr,
    .admin-users-table th,
    .admin-users-table td {
        display: block;
        width: 100%;
    }

    .admin-users-table {
        min-width: 0;
        border-spacing: 0;
    }

    .admin-users-table thead {
        display: none;
    }

    .admin-users-table tbody {
        display: grid;
        gap: 12px;
    }

    .admin-users-table tbody tr {
        background: #202125;
        border: 1px solid #333;
        border-radius: 12px;
        padding: 10px 12px;
        box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    }

    .admin-users-table tbody td {
        border-bottom: 1px solid #2c2d31;
        white-space: normal;
        padding: 10px 0;
        text-align: left;
    }

    .admin-users-table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .admin-users-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.78rem;
        font-weight: bold;
        color: #ffdbac;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .admin-form-actions {
        justify-content: stretch;
    }

    .admin-form-group-full {
        grid-column: auto;
    }

    .admin-form-group textarea {
        min-height: 120px;
    }

        .admin-collapsible {
        padding: 0;
        overflow: hidden;
    }

    .admin-section-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: transparent;
        border: none;
        color: #ffdbac;
        padding: 16px;
        font-size: 1rem;
        font-weight: bold;
        text-align: left;
        cursor: pointer;
    }

    .admin-section-toggle span:first-child {
        flex: 1;
    }

    .admin-section-arrow {
        color: #ffa94d;
        transition: transform 0.25s ease;
        flex-shrink: 0;
    }

    .admin-section-content {
        padding: 0 14px 14px 14px;
    }

    .admin-collapsible:not(.is-open) .admin-section-content {
        display: none;
    }

    .admin-collapsible.is-open .admin-section-arrow {
        transform: rotate(180deg);
    }

    .fejlec{
        position: fixed;
    }
}