/* ====== Base ====== */
body {
    background-color: #111;
    color: #c5c1c0;
    font-family: Arimo, Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}


.poster {
    position: relative;
}
.quality-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
    display: inline-block;
}
.poster .quality-badge + .quality-badge {
    left: auto;
    margin-left: 4px;
}
.quality-badge.bluray { background: #09d; }
.quality-badge.webrip { background: #28a745; }
.quality-badge.hdrip  { background: #ff9800; }
.quality-badge.dvdrip { background: #6c757d; }
.quality-badge.cam    { background: #e74c3c; }
.quality-badge.ts     { background: #c0392b; }
.quality-badge["4k"]  { background: #000; color: #ffe500; }
.quality-badge["1080p"] { background: #007bff; }
.quality-badge["720p"]  { background: #17a2b8; }
.quality-badge["480p"]  { background: #6f42c1; }


/* Overlay */
#MenuOverlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1400;
}

/* Wrapper push */
#wrapper {
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 1000;
}

/* Header */
#Head {
    background: #222;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#Logo img {
    max-height: 40px;
}
#SideButton {
    font-size: 22px;
    color: #ffe500;
    cursor: pointer;
    margin-left: 20px;
}
#MemberButton {
    border: 1px solid #ffe500;
    color: #ffe500;
    padding: 5px 10px;
    border-radius: 5px;
}



/* ===== Head container ===== */
#Head {
    background-color: #111;
    border-bottom: 2px solid #333;
    padding: 0;
}
#HeadTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
}
#Logo img {
    max-height: 42px;
}

/* ===== Member Button (Login/SignUp) ===== */
#MemberButton {
    background-color: #111;
    border: 1px solid #ffe500;
    color: #ffe500;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    transition: all .3s;
}
#MemberButton:hover {
    background-color: #ffe500;
    color: #111;
}
#MemberStatusButton {
    font-weight: bold;
}

/* ===== Navbar ===== */
#Navbar {
    background: #ffe500;
    display: flex;
    align-items: center;
    padding: 8px 15px;
}
#SideButton {
    font-size: 22px;
    margin-right: 12px;
    cursor: pointer;
    color: #111;
}

/* ===== Search Box ===== */
#SearchBox {
    flex: 1;
    position: relative;
    max-width: 600px;   /* μεγάλο, κεντρικό search */
    margin: 0 20px;
}
#SearchBox input {
    width: 100%;
    padding: 8px 40px 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
}
#SearchBox .searchButton,
#SearchBox .deleteButton {
    position: absolute;
    top: 6px;
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
}
#SearchBox .searchButton {
    right: 6px;
    background: #111;
    color: #ffe500;
}
#SearchBox .deleteButton {
    right: 42px;
    background: #ccc;
    color: #111;
}

/* ===== QuickAccess Menu ===== */
#QuickAccess {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}
#QuickAccess > li {
    position: relative;
}
#QuickAccess .navButton {
    color: #111;
    font-weight: bold;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background .3s;
}
#QuickAccess .navButton:hover {
    background: #111;
    color: #ffe500;
}

/* ===== Dropdown menus ===== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #222;
    border-radius: 4px;
    list-style: none;
    margin: 4px 0 0;
    padding: 6px 0;
    z-index: 1000;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    display: block;
    padding: 6px 12px;
    color: #eee;
    font-weight: bold;
    text-decoration: none;
}
.dropdown-menu li a:hover {
    background: #ffe500;
    color: #111;
}



#TopMovies {
    margin: 20px auto;
    max-width: 100%;
    padding: 0 20px;
}
#TopMovies .SectionTitle {
    font-size: 20px;
    font-weight: bold;
    color: #c5c1c0;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #333;
    display: inline-block;
}
#TopMovies .HeadRight {
    float: right;
    font-size: 13px;
    font-weight: bold;
    margin-top: 4px;
    color: #ffe500;
    text-decoration: none;
}

/* Slider container */
.HScroll {
    position: relative;
}
.HScrollContainer {
    overflow: hidden; /* slider effect */
}
.HScrollContent {
    display: flex;
    gap: 10px;
    transition: transform 0.4s ease;
}

/* Items */
.smallMovies .item {
    width: 100px;
    flex: 0 0 auto;
    text-align: center;
}
.smallMovies .imageHolder {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.smallMovies .imageHolder img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}
.smallMovies .topReason {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 0;
}
.imageHolder.bluray .topReason { background: #09d; }
.imageHolder.webrip .topReason { background: #28a745; }
.imageHolder.hd .topReason     { background: #ff9800; }
.imageHolder.uhd .topReason    { background: #000; color: #ffe500; }

.smallMovies .title {
    font-size: 12px;
    font-weight: bold;
    color: #eee;
    margin-top: 4px;
    height: 32px;
    line-height: 1.2em;
    overflow: hidden;
}

/* Navigation arrows */
.listNav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: #ffe500;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    font-size: 16px;
    line-height: 35px;
    text-align: center;
    color: #111;
}
.listNav:hover { opacity: 1; }
.listLeft { left: -10px; }
.listRight { right: -10px; }


/* ====== Links ====== */
a {
    color: #ffe500;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: #ffe500;
}

/* ====== Section Titles ====== */
h2.section-title {
    margin: 25px 0 15px;
    font-size: 20px;
    font-weight: bold;
    color: #c5c1c0;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    text-align: center;
}

/* ====== Movie Grid ====== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;   /* κέντρο */
    max-width: 1400px;         /* όριο πλάτους */
    margin: 0 auto;            /* κεντραρισμένο */
    padding: 20px;
    background: none;
}

/* ====== Movie Item ====== */
.movie-item {
    background: none;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.movie-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.movie-link {
    display: block;
    color: inherit;
}

/* ====== Poster ====== */
.movie-item .poster {
    border-radius: 5px;
    overflow: hidden;
}
.movie-item .poster img {
    min-height: 320px;
    object-fit: cover;
    vertical-align: middle;
    border-radius: 5px;
    display: block;
}

/* ====== Meta Info ====== */
.movie-item .meta {
    text-align: center;
    padding: 6px;
}
.movie-item .title {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    line-height: 1.3em;
    margin-top: 6px;
    height: 40px;
    overflow: hidden;
}

/* ====== Flags ====== */
.flag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 4px;
    font-weight: 600;
    font-size: 11px;
    color: #fff;
}
.flag.uhd { background:#000; }
.flag.fullhd { background:#0a58ca; }
.flag.hd { background:#28a745; }
.flag.bluray { background:#6f42c1; }

.meta .imdb {
    color: #ffe500;
    font-weight: bold;
    font-size: 14px;
}

/* ====== Pager ====== */
.pager {
    margin: 20px 0;
    text-align: center;
}
button.load-more {
    background: #ffe500;
    color: #111;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
button.load-more:hover {
    background: #fe9;
}

/* ====== Skeleton Loader ====== */
.movie-item.skeleton {
    background: #222;
    border-radius: 6px;
    animation: pulse 1.5s infinite;
}
.movie-item.skeleton .poster {
    background: #333;
    min-height: 320px;
}
.movie-item.skeleton .title {
    height: 14px;
    background: #444;
    margin: 10px auto;
    width: 70%;
    border-radius: 4px;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ====== Footer ====== */
.footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 13px;
    border-top: 1px solid #333;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .movie-item .title {
        font-size: 14px;
    }
}
@media (max-width: 600px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .movie-item .poster img {
        min-height: 240px;
    }
    .movie-item .title {
        font-size: 13px;
        height: auto;
    }
}
