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


:root {
  --bg-main:#000;
  --bg-card:#111;
  --bg-hover:#1a1a1a;
  --text-main:#fff;
  --text-sec:#ccc;
  --text-dim:#aaa;
  --highlight:#ff0;
  --border:#333;
}

* { box-sizing:border-box; }
html, body { height:100%; }
body {
  margin:0;
  font:14px/1.4 Arial, Helvetica, sans-serif;
  background:var(--bg-main);
  color:var(--text-main);
}
a { color:var(--highlight); text-decoration:none; }
a:hover { text-decoration:underline; }
img { display:block; max-width:100%; height:auto; }



/* Pagination container */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

/* Pagination links */
.pagination a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #0078d7;   /* μπλε hover */
    color: #fff;
    border-color: #0078d7;
}
.browse-all {
    margin: 5px 10px 15px 0;
	    float: right;
    font-size: 13px;
    font-weight: bold;
    margin-top: 4px;
    color: #ffe500;
    text-decoration: none;
}



/* Current page */
.pagination .current {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: #0078d7;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

/* Disabled look (αν χρειαστεί) */
.pagination .disabled {
    color: #aaa;
    border-color: #eee;
    background: #f9f9f9;
    cursor: not-allowed;
}

/* Ellipsis (…) */
.pagination .dots {
    padding: 6px 8px;
    color: #666;
    font-size: 14px;
}


/* ===== Movie Grid ===== */
.movie-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 20px;
}

.search-box-wrapper {
    position: relative;
    width: 70%;        /* στο desktop */
    margin: 0 auto;
    max-width: 800px;
}

.search-box-wrapper input.form-control {
    width: 100%;
    padding-left: 35px;   /* αφήνουμε χώρο αριστερά για το Χ */
    box-sizing: border-box;
}

.search-box-wrapper #clearSearch {
    position: absolute;
    left: 10px;           /* αριστερά μέσα στο input */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    display: none;        /* θα εμφανίζεται με JS */
    font-size: 16px;
    z-index: 5;
}

.search-box-wrapper #clearSearch:hover {
    color: #333;
}

/* κινητά: full width */
@media (max-width: 768px) {
    .search-box-wrapper {
        width: 100%;
        padding: 0 10px;
    }
}








/* ===== Movie Card ===== */
.movie-card {
  background: #000;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  width: 300px;              /* σταθερό πλάτος */
  text-align: center;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

/* ===== Τίτλος ===== */
.movie-card .movie-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 8px;
  color: #fff;
}

/* ===== Badge (Bluray, WebRip κλπ) ===== */
.movie-card .badge {
  background: #1976d2;       /* μπλε για Bluray */
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 8px;
  border-radius: 8px 8px 0 0;
  margin-bottom: -5px;
}
.movie-card .badge:empty {
  display: none;
}

/* ===== Poster ===== */
.movie-card .movie-body {
  position: relative;
}
.movie-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* ===== Side Info (δεξιά στήλη) ===== */
.movie-card .side-info {
  position: absolute;
  top: 0;
  right: -55px;               /* βγαίνει λίγο έξω */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.movie-card .side-info div {
  background: #222;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  min-width: 50px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Χρώμα για IMDb */
.movie-card .side-info .imdb {
  background: #f5c518;
  color: #000;
  font-size: 12px;
}

/* Play button */
.movie-card .side-info .play {
  background: #444;
  font-size: 16px;
  cursor: pointer;
}
.movie-card .side-info .play:hover {
  background: #666;
}

/* ===== Genres κάτω από poster ===== */
.movie-card .genres {
  margin-top: 10px;
  font-size: 13px;
  font-weight: bold;
  color: #ccc;
  line-height: 1.3;
  min-height: 32px;
}








/* Header container */
#TopHeader {
    background: #ffe500;
    color: #070707;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 15px;
    gap: 15px;
}

/* Left side: logo + menu */
.left-side {
  display: flex;
  align-items: center;
  gap: 20px;
}
#TopHeader .logo {
  font-size: 28px;
  font-weight: bold;
  color: #ffe500;
  text-shadow: 1px 1px 2px #000;
}
#TopHeader .logo span { color: #fff; }
.nav-left { display: flex; gap: 12px; align-items: center; }
.menu-btn {
    font-size: 22px;
    background: none;
    border: none;
    color: #000000;
    cursor: pointer;
}
.nav-left a {
    color: #030303;
    font-weight: bold;
    text-decoration: none;
}
.nav-left a:hover { text-decoration: underline; }

/* Search wrapper = μεγάλο σε όλο το πλάτος */
.search-wrapper {
  flex: 1;
  max-width: 100%;
}
.search-bar {
  display: flex;
  width: 100%;
  border: 2px solid #ffe500;
  border-radius: 4px;
  overflow: hidden;
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 15px;
}
.search-bar .search-btn {
  background: #ff9800;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
}

/* Login box δεξιά */
.login-box a {
    border: 1px solid #000000;
    padding: 6px 12px;
    border-radius: 4px;
    color: #040403;
    font-weight: bold;
    text-decoration: ;
}
/* Logo block επάνω */
#LogoBlock {
  background: #111;
  text-align: left;
  padding: 15px 0 15px 20px;   /* ✅ 20px κενό αριστερά */
  border-bottom: 1px solid #333;
}

#LogoBlock .logo {
  font-size: 34px;
  font-weight: bold;
  color: #ffe500;
  text-shadow: 1px 1px 2px #000;
}

#LogoBlock .logo span {
  color: #fff;   /* το "SO" άσπρο */
}
#LogoBlock .logo {
  text-decoration: none;
  /* υπόλοιπα όπως έχεις */
}


.movie-poster {
  position: relative;
  display:inline-block;
  max-width:250px;
}
.movie-poster img {
  width:100%;
  border-radius:6px;
  box-shadow:0 2px 8px rgba(0,0,0,0.6);
}
.imdb-badge {
  position:absolute;
  top:6px; right:6px;
  background:#f5c518;
  color:#000;
  font-weight:bold;
  font-size:12px;
  padding:2px 6px;
  border-radius:3px;
  display:flex; align-items:center; gap:4px;
}
.imdb-badge img { height:18px; }

.quality-badges {
  position:absolute;
  top:6px; left:6px;
  display:flex; flex-wrap:wrap; gap:5px;
}
.quality-badge {
  font-size:12px;
  font-weight:bold;
  padding:2px 6px;
  border-radius:3px;
  color:#fff;
}
.quality-1080p { background:#2980b9; }
.quality-720p { background:#27ae60; }
.quality-4k { background:#8e44ad; }
.quality-webrip { background:#145a32; }
.ymal {
  margin:20px 0;
  padding:10px 0;
  background:var(--bg-main);
  border-top:1px solid var(--border);
}
.ymal h3 {
  margin:0 0 12px;
  font-size:16px;
  font-weight:bold;
  color:var(--text-sec);
  border-bottom:1px solid var(--border);
  padding-bottom:6px;
}

.ymal-viewport { position:relative; overflow:hidden; }
.ymal-track {
  display:flex;
  gap:12px;
  overflow-x:auto;
  scroll-behavior:smooth;
  scrollbar-width:none;
}
.ymal-track::-webkit-scrollbar { display:none; }

.ymal-item {
  flex:0 0 110px;
  text-align:center;
}
.ymal-item img {
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:4px;
  box-shadow:0 2px 6px rgba(255,255,255,0.15);
  margin-bottom:5px;
}
.ymal-title {
  font-size:12px;
  font-weight:bold;
  color:var(--highlight);
  height:32px;
  overflow:hidden;
}

/* arrows */
.ymal-nav {
  position:absolute;
  top:40%; transform:translateY(-50%);
  border:none;
  background:var(--highlight);
  color:#000;
  width:28px; height:28px;
  border-radius:50%;
  cursor:pointer;
  font-weight:bold;
  opacity:0.8;
}
.ymal-nav:hover { opacity:1; }
.ymal-nav.prev { left:-10px; }
.ymal-nav.next { right:-10px; }


.movie-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:20px;
}
.movie-item {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:6px;
  overflow:hidden;
  transition:transform .2s, box-shadow .2s;
}
.movie-item:hover {
  transform:translateY(-3px);
  box-shadow:0 4px 12px rgba(0,0,0,.6);
}
.movie-item img {
  width:100%;
  height:240px;
  object-fit:cover;
}
.movie-item .title {
  padding:6px;
  font-size:14px;
  font-weight:bold;
  color:var(--highlight);
  text-align:center;
}
.torrent-list {
  margin:20px 0;
  padding:10px;
  background:var(--bg-card);
  border:1px solid var(--border);
}
.torrent-item {
  border:1px solid var(--border);
  border-radius:4px;
  padding:6px;
  margin-bottom:8px;
  background:var(--bg-hover);
  font-size:13px;
  color:var(--text-main);
}
.torrent-item a {
  color:var(--highlight);
  font-weight:bold;
}
.comments-wrapper {
  margin-top:25px;
  padding:10px;
  background:var(--bg-card);
  border-radius:6px;
}
.comment {
  background:var(--bg-hover);
  border:1px solid var(--border);
  border-radius:8px;
  padding:10px;
  margin-bottom:12px;
}
.comment-header {
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:bold;
  color:var(--text-main);
}
.comment-header .avatar {
  width:32px; height:32px;
  border-radius:50%;
  border:1px solid var(--border);
}
.comment-user { color:var(--highlight); }
.comment-time { font-size:12px; color:var(--text-dim); }
.comment-text { font-size:14px; color:#eee; margin:6px 0; }
.vote-btn {
  border:1px solid var(--border);
  background:var(--bg-card);
  color:var(--highlight);
  border-radius:4px;
  padding:4px 8px;
  cursor:pointer;
}
.vote-btn.like { border-color:#28a745; color:#28a745; }
.vote-btn.dislike { border-color:#dc3545; color:#dc3545; }
.footer {
  background:#111;
  color:#777;
  font-size:13px;
  text-align:center;
  padding:15px;
  border-top:1px solid var(--border);
}


/* === Similar Movies Compact Block (δεξιά) === */

/* Holder για Similar Movies */


.ymal.small {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px;
    margin-top: -197px;
    float: right;
    /* width: 100%; */
    max-width: 850px;
}
/* τίτλοι μέσα στο You may also like */
.ymal.small .ymal-title {
  font-size: 11px;
  color: #ff0;
  font-weight: bold;
  margin-top: 3px;
  line-height: 1.2;
  height: 28px;               /* περίπου 2 γραμμές */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* κόβει στις 2 γραμμές */
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  white-space: normal;        /* επιτρέπει πολλές λέξεις */
}

.ymal.small h3 {
	    margin-top: -225px;
  font-size: 13px;
  margin: 0 0 8px;
  color: #ccc;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
}

.ymal.small .ymal-viewport {
  position: relative;
  overflow: hidden;
  max-width: 800px;   /* 8 κάρτες × 90px + 7 × 10px gap ≈ 800px */
}

.ymal.small .ymal-track {
  display: flex;
  gap: 10px;
  transition: transform .4s ease;
}

.ymal.small .ymal-item {
  flex: 0 0 90px;   /* κάθε κάρτα 90px */
  text-align: center;
}

.ymal.small .ymal-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 3px;
}

.ymal.small .ymal-title {
  font-size: 11px;
  color: #ff0;
  font-weight: bold;
  margin-top: 3px;
  line-height: 1.2;
  height: 28px;
  overflow: hidden;
}

/* arrows */
.ymal.small .ymal-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  border: none;
  background: #ff0;
  color: #000;
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  opacity: 0.8;
}
.ymal.small .ymal-nav.prev { left: -8px; }
.ymal.small .ymal-nav.next { right: -8px; }
.ymal.small .ymal-nav:hover { opacity: 1; }



.imageHolder.bluray .topReason { background:#1976d2; }
.imageHolder.webrip .topReason { background:#388e3c; }
.imageHolder.hd .topReason     { background:#e53935; }
.imageHolder.uhd .topReason    { background:#6a1b9a; }
.imageHolder.other .topReason  { background:#757575; }

.topReason {
  position:absolute;
  top:0; left:0; right:0;
  font-size:11px;
  font-weight:bold;
  color:#fff;
  padding:2px 0;
  text-align:center;
  text-transform:uppercase;
}
.imageHolder {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.imageHolder .topReason {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(229,9,20,0.9);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 0;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}

/* === Poster στο Movie Details (300x450) === */
/* Poster στο Movie Details */
#Movie .posterHolder {
  flex: 0 0 300px;      /* σταθερό πλάτος */
  position: relative;
  margin: 20px 0 0 20px; /* ✅ κενό: πάνω 20px, αριστερά 20px */
}

#Movie .posterHolder img {
  width: 300px;
  height: 450px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}


/* === IMDb Badge στο Movie Details === */
#Movie .posterHolder .imdb-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f5c518;
  color: #000;
  font-size: 12px;          /* μικρό μέγεθος */
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
  z-index: 10;
}

#Movie .posterHolder .imdb-badge img {
  height: 16px;    /* μικρό logo */
  width: auto;
}
.imdb-details {
  display: flex;
  flex-wrap: nowrap;      /* ✅ πάντα σε μία σειρά */
  align-items: flex-start;
  gap: 20px;
}

/* Poster αριστερά */
.imdb-details .posterHolder {
  flex: 0 0 300px;        /* ✅ σταθερό πλάτος poster */
  position: relative;
}

/* Details στη μέση */
.imdb-details .movie-info {
  flex: 1 1 auto;         /* ✅ παίρνει το υπόλοιπο */
  min-width: 0;           /* ✅ δεν ξεχειλώνει */
}


@media (max-width: 1024px) {
  .imdb-details {
    flex-wrap: wrap;        /* επιτρέπεται να σπάει */
  }
  .imdb-details .posterHolder {
    flex: 0 0 100%;
    text-align: center;
  }
  .imdb-details .movie-info {
    flex: 0 0 100%;
  }
  .imdb-details .ymal.small {
    flex: 0 0 100%;
    margin: 20px 0 0 0;
  }
}



/* ====== Similar Movies ====== */
#SimilarMovies {
    margin-top: 40px;
}

#SimilarMovies h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
}

#SimilarMovies .movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

#SimilarMovies .movie-item {
    text-align: center;
}

#SimilarMovies .poster {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#SimilarMovies .poster img {
    width: 100%;
    height: auto;
    display: block;
}

#SimilarMovies .topReason {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(25, 118, 210, 0.9); /* default μπλε */
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 0;
    text-align: center;
    text-transform: uppercase;
}

#SimilarMovies .title {
    font-size: 14px;
    font-weight: 500;
    color: #eee;
    margin-top: 6px;
}




.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.movie-item {
    position: relative;
    text-align: center;
}

.movie-item .poster {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.movie-item .poster img {
    width: 100%;
    height: auto;
    display: block;
}

/* Full width quality badge */
.topReason {
    position: absolute;
    top: 0;
    left: 0;
    right: 0; /* γεμίζει όλο το πλάτος */
    background: rgba(229, 9, 20, 0.9); /* κόκκινο ημιδιάφανο */
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 0;
    text-align: center;
    text-transform: uppercase;
    z-index: 2;
}


/* Title κάτω από το poster */


.movie-item .title {
    font-size: 14px;
    font-weight: 500;
    color: #eee;
    line-height: 1.3;
}
.poster.bluray .topReason { background: rgba(25, 118, 210, 0.9); }   /* μπλε */
.poster.webrip .topReason { background: rgba(56, 142, 60, 0.9); }   /* πράσινο */
.poster.hd .topReason     { background: rgba(229, 57, 53, 0.9); }   /* κόκκινο */
.poster.uhd .topReason    { background: rgba(106, 27, 154, 0.9); }  /* μοβ */
.poster.other .topReason  { background: rgba(97, 97, 97, 0.9); }    /* γκρι */



/* 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;
}


/* ===== 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;

    white-space: nowrap;         /* μία γραμμή */
    text-overflow: ellipsis;     /* βάζει ... */
    display: block;              /* χρειάζεται */
    max-width: 100%;             /* να μην ξεχειλώνει */
}

/* 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: left;
}

/* ====== 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: 0px;
}
.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;
    }
}

