﻿/* Mangayummy Theme */

/* --- LOGO HEADER --- */
.ya-logo img {
  border-radius: 8px !important;
  width: 80px !important;
  height: 80px !important;
  position: relative;
  z-index: 10;
  margin-top: -10px;
  margin-bottom: -10px;
  display: block;
}


:root {
  --head: #313131;
  --radius: 12px;
  --ya-toast-success-bg: rgba(3, 199, 90, 0.96);
  --ya-toast-success-fg: #eafff2;
  --ya-toast-error-bg: rgba(231, 76, 60, 0.96);
  --ya-toast-error-fg: #fff1f0;
  --ya-toast-info-bg: rgba(22, 119, 255, 0.96);
  --ya-toast-info-fg: #eef5ff;
}

.ya-toast,
.modal-notification,
.status-notification,
.comment-toast,
.bug-toast,
.reply-toast,
.notification.notification-success,
.notification.notification-error,
.notification.notification-info,
.discord-linked-success,
.discord-linked-error {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 10000 !important;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: yaToastIn 0.3s ease;
}

@keyframes yaToastIn {
  from {
    transform: translate3d(24px, 0, 0) !important;
    opacity: 0;
  }

  to {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1;
  }
}

.ya-toast--success,
.modal-notification.notification-success,
.notification.notification-success,
.status-notification.success,
.comment-toast.success,
.bug-toast.success,
.reply-toast .reply-notice.success,
.discord-linked-success {
  background: var(--ya-toast-success-bg) !important;
  color: var(--ya-toast-success-fg) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.ya-toast--error,
.modal-notification.notification-error,
.notification.notification-error,
.status-notification.error,
.comment-toast.error,
.reply-toast .reply-notice.error,
.discord-linked-error {
  background: var(--ya-toast-error-bg) !important;
  color: var(--ya-toast-error-fg) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.ya-toast--info,
.modal-notification.notification-info,
.notification.notification-info,
.status-notification.info {
  background: var(--ya-toast-info-bg) !important;
  color: var(--ya-toast-info-fg) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.global-settings-open {
  overflow: hidden;
}

.global-settings-modal[hidden] {
  display: none !important;
}

.global-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
}

.global-settings-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.global-settings-modal__dialog {
  position: relative;
  width: min(92vw, 550px);
  max-width: 550px;
  height: min(86vh, 780px);
  margin: 6vh auto;
  background: #1b1b1b;
  border: 1px solid #444;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.global-settings-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.global-settings-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.global-settings-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #1b1b1b;
}

/* Selection color (red instead of blue) */
::selection {
  background: #13667a;
  color: #fff;
}

::-moz-selection {
  background: #13667a;
  color: #fff;
}

/* RESET TOTAL PAGE */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: #222; /* fallback only, background image is applied in inline header style */
}

body {
  color:#fff;
  font-family:Arial,sans-serif;
  margin: 0;
  padding-top: 0;
  padding-bottom: 70px;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-gutter: stable; /* Reserve space for scrollbar to prevent layout shift */
}

/* Site warning banner (front page) */
.site-warning-banner {
    font-family: 'Nunito Sans', sans-serif;
    font-size: .875rem;
    font-style: normal;
    padding: 13px;
    margin-top: 5px;
    margin-bottom: 13px;
    border: 1px solid #e1e3e5;
    border-radius: 6px;
    color: #fff;
    border-color: #e1e3e5;
    border: 1px dashed #618ddd !important;
    text-align: center;
}

.site-warning-banner a {
    color: #13667a;
    text-decoration: none;
}

.site-warning-banner a:hover {
    color: #13667a;
    opacity: 0.9;
}

/* Header is static — remove any legacy header compensation spacing */
html, body, #page, #wrapper, .site, .site-content, .main-content, .content-area {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-wrapper,
.site-wrapper,
.content-wrapper,
.site-content,
.content-area {
  background: var(--head);
  border-radius: var(--radius);
  box-shadow: -4px 6px 4px rgba(0, 0, 0, .25), 4px 0 4px rgba(0, 0, 0, .25), 0 5px 4px rgba(0, 0, 0, .28);
}

/* Disable global style_new container decoration on profile page (keep profile.css custom background) */
.profile-page,
.profile-page section,
.profile-page .page-wrapper,
.profile-page .site-wrapper,
.profile-page .content-wrapper,
.profile-page main,
.profile-page .site-content,
.profile-page .content-area,
.settings-page,
.settings-page section,
.settings-page .page-wrapper,
.settings-page .site-wrapper,
.settings-page .content-wrapper,
.settings-page main,
.settings-page .site-content,
.settings-page .content-area {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Custom scrollbar for the whole page */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #888;
}

*, *::before, *::after {
  box-sizing: inherit;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* FIX OVERFLOW FOR SEARCH DROPDOWN */
.page-wrapper,
.site-wrapper,
.content-wrapper,
main,
section,
.ya-section {
  overflow: visible !important;
}

#page-rotate-wrapper {
  padding-top: 20px;
}

@media (max-width: 768px) {
  #page-rotate-wrapper {
    padding-top: 10px;
  }
}

/* HEADER */
.ya-header {
  position: static;
  background: #13667a;
  padding-bottom: 0;
  overflow: visible;
}

/* WordPress admin bar fix */
/* admin-bar spacing handled by WordPress - no additional margin needed */

.ya-header-inner {
  max-width:1200px;
  width: 100%;
  box-sizing: border-box;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 20px;
  height: 66px;
}

.ya-left {
  display:flex;
  align-items:center;
  gap:10px;
}

.ya-sub { color:#bbb; font-size:13px; }

.site-logo {
  color:#fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-logo {
    display: block;
    font-size: 13px;
    font-weight: 800;
  }
}



/* SEARCH — BASE DEFINITION */
.ya-search {
  position: relative;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  flex: 1;

}



/* =========================
   DEFAULT — DESKTOP / LAPTOP
   ========================= */
.ya-menu {
  display: flex;
  transition: opacity .2s ease;
}

.ya-menu a {
  color:#fff;
  margin:0 12px;
  text-decoration:none;
  font-weight:600;
  border-bottom:2px solid transparent;
  transition: border-color 0.2s ease;
}

.ya-menu a.active,
.ya-menu a:hover {
  border-bottom-color:#fff;
}

.ya-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-buttons a {
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-btn.login {
  border:1px solid #aaa;
  padding:5px 10px;
  color:#fff;
  text-decoration: none;
}

.auth-btn.register {
  background:#13667a;
  padding:5px 10px;
  color:#fff;
  text-decoration: none;
}

.auth-btn.logout {
  border:1px solid #aaa;
  padding:6px 12px;
  color:#fff;
  text-decoration: none;
}

.auth-btn.profile {
  border:1px solid #aaa;
  padding:6px 12px;
  color:#fff;
  text-decoration: none;
}

.header-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.header-user .user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

.header-user .user-link:hover {
  opacity: 0.8;
}

.user-avatar img {
  border-radius: 50%;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 48px 0 0 0;
    margin-top: 40px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.footer-inner.footer-minimal {
    grid-template-columns: 1fr;
    justify-content: center;
    text-align: center;
}
.footer-inner.footer-minimal .footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-inner.footer-minimal .footer-links {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.footer-inner.footer-minimal .footer-links li {
  text-align: center;
  width: 100%;
}
.footer-col-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}
.footer-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Hide footer on single chapter pages but keep code active for comments */
body.single-chapter .site-footer {
    display: none !important;
}
body.single-chapter .footer-bottom {
    display: none !important;
}

.footer-social-icons a {
    color: #aaa;
    transition: color 0.2s;
}
.footer-social-icons a:hover {
    color: #fff;
}
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}
.footer-support-email {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 16px;
}
.footer-support-email a {
    color: #e05a6e !important;
    text-decoration: none !important;
}
.footer-support-email a:hover {
    text-decoration: underline !important;
}

.footer-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}
.footer-social-icons a {
    color: #fff;
}

.footer-social-icons a svg,
.footer-discord-btn svg {
    fill: currentColor;
    color: #fff;
    width: 20px;
    height: 20px;
}
.footer-discord-btn:hover {
    background: #4752c4;
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid #2a2a2a;
    text-align: center;
    padding: 16px 24px;
    font-size: 16px;
    color: #666;
}
.footer-bottom strong, .footer-bottom p {
    color: #b8b8b8 !important;
}
.footer-copyright-main {
    color: #fff !important;
}

@media (max-width: 1300px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px;
    }

    .footer-col {
        text-align: left;
    }

    .footer-links {
      text-align: left;
      margin: 0;
      font-size: 0.9em;
      white-space: normal;
    }

    .footer-discord-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px;
    }

    .footer-col {
        text-align: left;
    }

    .footer-links {
      text-align: left;
      margin: 0;
      font-size: 0.9em;
      white-space: normal;
    }

    .footer-discord-btn {
        width: 100%;
        justify-content: center;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px;
    }

    .footer-col {
        text-align: left;
    }

    .footer-col-title {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .footer-links {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-discord-btn {
        justify-content: center;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }

    .footer-bottom {
        padding: 12px 16px;
        font-size: 16px;
    }
}

.header-user:hover .user-avatar img {
  border-color: #13667a;
}

.user-name {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
  display: none !important;
}

.user-menu.active {
  display: flex !important;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 40px;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #3a3a3a;
}

.user-menu-item:last-child {
  border-bottom: none;
}

.user-menu-item:hover {
  background-color: #3a3a3a;
}

.user-menu-item.profile-link,
.user-menu-item.settings-link {
  color: #fff;
}

.user-menu-item.notif-link {
  color: #13667a;
}

.user-menu-item.messages-link {
  color: #fff;
}

.user-menu-item.logout {
  display: flex !important;
  color: #ff6b6b;
  border-bottom: none;
}

.user-menu-item.logout:hover {
  background-color: rgba(255, 107, 107, 0.1);
}

/* Notification badge in user menu */
.notif-badge {
  margin-left: auto;
  background: #13667a;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.notif-badge:empty {
  display: none;
}

/* =========================
   DEFAULT — DESKTOP / LAPTOP
   ========================= */
/* BOTTOM NAV */
.ya-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: #1a1a1a;
  border-top: 3px solid #13667a;
  z-index: 1000;
  padding: 10px;
  transition: transform .3s ease, opacity .2s ease;
  will-change: transform;
  box-sizing: border-box;
  overflow-x: hidden;
}

.ya-bottom-nav a {
  flex: 1;
  min-width: 0;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px;
}

.ya-bottom-nav a.active {
  color: #13667a;
}

/* Hide/show on swipe: transform slide down when hidden */
.ya-bottom-nav.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.ya-bottom-nav:not(.is-hidden) {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: auto;
}

/* Enforce bottom-nav behavior and prevent other CSS from overriding */
.ya-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  will-change: transform;
  transition: transform .3s ease, opacity .2s ease;
}

.ya-bottom-nav.is-hidden {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ya-bottom-nav:not(.is-hidden) {
  transform: translateY(0%) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}



.ya-search-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.ya-search input {
  flex:1;
  background:#181818;
  border:1px solid #333;
  color:#fff;
  border-radius: 4px;
}

.ya-search input::placeholder {
  color: #ccc;
}

.ya-filter {
  height: 34px;
  width: 150px;
  background-color: var(--head);;
  border-radius: var(--radius-small);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease-in-out;
  position: relative;
  border: none;
  color: var(--text);
}

.ya-search-icon {
  display: none;
}

@media (max-width: 768px) {
  .ya-search-icon {
    display: inline-flex;
  }
  .ya-search input,
  .ya-filter {
    display: none !important;
  }
  .ya-search.open input,
  .ya-search.open .ya-filter {
    display: flex !important;
  }
}

.ya-filter i {
  font-size: 14px;
}

.sr-title {
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
}

.sr-year {
  margin-left: 6px;
  font-size: 13px;
  color: #9aa0a6;

}

.ya-search-wrapper {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  gap: 6px;
}

.ya-search-wrapper .search-icon-btn,
.ya-search-wrapper .search-modal-filter {
  background: transparent;
  border: 1px solid #333;
  color: #fff;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0 8px;
}

.ya-search-wrapper .search-modal-filter {
  width: auto;
  min-width: auto;
  height: 34px;
  line-height: 1;
}

.search-icon-btn svg {
  fill: #fff !important;
  width: 16px;
  height: 16px;
}

.search-icon-btn svg {
  fill: #fff !important;
}

.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: auto;
}

.search-modal.open {
  display: block;
}

.search-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
}

.search-modal-content {
  position: relative;
  max-width: 720px;
  margin: 8vh auto;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(0,0,0,.5);
  padding: 18px;
  z-index: 2;
}

.search-modal-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-modal-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.search-modal-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #fff;
  pointer-events: none;
}

.search-modal-input-wrap input {
  width: 100%;
  padding-left: 52px;
  box-sizing: border-box;
}

.search-modal-form svg {
  display: inline-flex;
  margin-right: 6px;
}

.search-modal-form input#searchModalInput {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px 10px 48px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  border-radius: 6px;
}

.search-modal-filter {
  background: transparent;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  text-decoration: none;
}

.search-recent {
  margin-top: 14px;
  color: #ccc;
}

.search-modal .ya-search-results {
  max-height: 70vh;
  overflow-y: auto;
  margin-top: 12px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #0f0f0f;
  display: block;
}

.search-recent span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

#searchRecentList {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 160px;
  overflow-y: auto;
}

#searchRecentList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 5px;
  padding: 6px 10px;
  margin-bottom: 6px;
}

#searchRecentList li button {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
}

@media (max-width: 768px) {
  .ya-search input,
  .ya-filter {
    display: none !important;
  }

  .search-modal-content {
    margin: 6vh 12px;
    width: auto;
    font-weight: 400;
  }
}

.ya-result-all {
  padding: 6px 8px;
  text-align: center;
  border-top: 1px solid #333;
  cursor: pointer;
  color: #13667a;
  font-weight: 500;
  font-size: 12px;
  transition: background 0.2s;
}

.ya-result-all:hover {
  background: #2a2a2a;
}

/* FORCED SEARCH RESULTS DROPDOWN */
.ya-search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100% !important;
  min-width: 300px !important;
  max-width: 100% !important;
  z-index: 999999;
  background: #0f0f0f;
  padding: 0;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
  overflow: hidden !important;
  contain: layout !important;
}

/* HOVER FEEDBACK */
.ya-search-results a:hover {
  background: rgba(255,255,255,.06) !important;
}

.ya-search-results .ya-result-item {
  min-height: 80px !important;
  height: auto !important;
  padding: 12px 16px !important;
  gap: 16px !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: background .15s ease !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  contain: layout style paint !important;
  overflow: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.ya-search-results .ya-result-item:hover {
  background: rgba(255,255,255,.08) !important;
}

.ya-search-results .ya-result-item img {
  width: 64px !important;
  height: 80px !important;
  
  flex-shrink: 0 !important;
  border-radius: 6px !important;
}

.ya-search-results .ya-result-details {
  flex: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
  overflow: hidden !important;
}

.ya-search-results .ya-result-title {
  font-size: 20px !important;
  line-height: 1.4 !important;
  color: #eaeaea !important;
  width: 100% !important;
  overflow: hidden !important;
}

.ya-search-results .sr-title {
  display: block !important;
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-wrap: break-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
}

.ya-search-results .ya-result-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 15px !important;
  color: #ccc !important;
  margin-top: 2px !important;
}

.ya-search-results .meta-rating {
  color: #ffd700 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  position: relative !important;
}

.ya-search-results .meta-rating::before {
  content: "★" !important;
  margin-right: 3px !important;
  font-size: 14px !important;
  color: inherit !important;
}

.ya-search-results .meta-views {
  color: #13667a !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  position: relative !important;
}

.ya-search-results .meta-views::before {
  content: "" !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8'/%3e%3ccircle cx='12' cy='12' r='3'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  width: 14px !important;
  height: 14px !important;
  display: inline-block !important;
  margin-right: 4px !important;
  vertical-align: -1px !important;
  color: inherit !important;
}

.ya-search-results .meta-bookmarks {
  color: #999 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.ya-search-results .meta-bookmarks .meta-svg-icon {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

.ya-search-results .meta-year {
  color: #999 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  position: relative !important;
}

.ya-search-results .meta-year::before {
  content: "📅" !important;
  margin-right: 3px !important;
  font-size: 12px !important;
  color: inherit !important;
}

/* SEARCH CONTAINER */
.search-container {
  margin-top: 16px;
}

.ya-search-results .ya-result-status {
  margin-top: 4px !important;
}

.ya-search-results .status-badge {
  color: #666 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  background: rgba(102, 102, 102, 0.1) !important;
}

.ya-search-results .status-badge[data-status="ongoing"] {
  color: #000 !important;
  background: #13667a !important;
}

.ya-search-results .status-badge[data-status="completed"] {
  color: #fff !important;
  background: #007cba !important;
}

/* GRID */
.ya-section {
  max-width:1200px;
  margin:auto;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--head);
  margin-top: 50px;
  margin-bottom: 50px;
}

.ya-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 24px;
}

/* .ya-grid — now controlled by clean breakpoint system at end of file */

.ya-card {
  background:#111;
  border-radius:8px;
  overflow:hidden;
  text-decoration:none;
}

.ya-card img {
  width:100%;
  aspect-ratio: 3 / 4;
  
  border-radius: 0;
}

.ya-title {
  display:block;
  padding:8px;
  font-size:14px;
  text-align:center;
  color: #fff;
  font-weight: normal;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}



/* icon fonts must override the global stack */
.fa, .fas, .far, .fab, [class^="icon-"], .ionicons, [class*=" icon-"], .dashicons,
.fa:before, .fas:before, .far:before, .fab:before, [class^="icon-"]:before,
[class*=" icon-"]:before, .ionicons:before,
.dashicons:before, #wpadminbar .ab-icon, #wpadminbar .ab-item .ab-icon {
    /* FontAwesome, Ionicons, Dashicons used across theme */
    font-family: "FontAwesome 5 Free","FontAwesome","Ionicons","Dashicons" !important;
    /* solid icons require 900 weight, regular 400, brands 400 */
    font-weight: 900 !important;
    line-height: 1;
    font-style: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* prevent inheritance from body/global font */
    font-size: inherit;
}

/* FOOTER */
.site-footer {
  background: #1a1a1a !important;
  color: #fff !important;
  text-align: left;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 1px;
  margin-bottom: 0;
  position: relative;
}

/* FORCE FOOTER TEXT WHITE - MAXIMUM SPECIFICITY */
html body .site-footer,
html body footer.site-footer,
.site-footer,
footer.site-footer {
  color: #fff !important;
}

.site-footer *,
.site-footer p,
.site-footer span,
.site-footer .footer-strong,
.site-footer .footer-site-name {
  color: #fff !important;
}

/* ABSOLUTE FOOTER TEXT OVERRIDE */
.site-footer,
.site-footer * {
  color: #fff !important;
}

.site-footer p {
  margin: 5px 0;
}

.footer-links {
  text-align: left;
  margin: 10px 0 0 0;
  font-size: 0.9em;
  white-space: nowrap;
}

.site-footer .footer-links a, .site-footer .footer-links a:link, .site-footer .footer-links a:visited, .site-footer .footer-links a:active {
  color: #fff !important;
  text-decoration: none !important;
  margin: 0 2px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #13667a;
}

/* Footer info links color specific */
.site-footer .footer-col .footer-links a,
.site-footer .footer-support-email a,
.site-footer .footer-support-email {
  color: #b8b8b8 !important;
}

.site-footer .footer-support-email a:hover {
  color: #e05a6e !important;
}

.site-footer .storage-info {
  color: #fff !important;
  max-width: 600px; 
  font-size: .9rem;
  text-align: center;
  margin: 0 auto;
}

/* make brand name bold in disclaimer */
.site-footer .storage-info .brand-name {
  font-weight: 700;
}

/* preferences genres checkboxes two columns */
#prefs-form fieldset.genres-include {
  display: flex;
  flex-wrap: wrap;
}

/* warning text at top of preferences */
.prefs-warning {
  background: #333;
  padding: 10px;
  border-left: 4px solid #ffc107;
  font-size: 0.9em;
}
/* small note color on preferences header */
.prefs-note {
  color: #bbb;
}
#prefs-form fieldset.genres-include label {
  width: 50%;
  box-sizing: border-box;
  padding-right: 10px;
}

/* =========================
   MOBILE (@768px)
   ========================= */
/* MOBILE STYLES */
/* === CLEAN 3-BREAKPOINT SYSTEM === */

/* 📱 MOBILE: 0–768px */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
    padding-top: 0; /* removed sticky-header compensation */
  }

  .ya-menu {
    display: none !important;
  }

  .ya-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #1a1a1a !important;
    border-top: 3px solid #13667a !important;
    z-index: 9999 !important;
  }

  .ya-bottom-nav ul {
    display: flex !important;
    justify-content: space-evenly !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 5px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .ya-bottom-nav li {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 20% !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  .ya-bottom-nav li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 0 !important;
    line-height: 1 !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  .ya-bottom-nav li a i {
    font-size: 18px !important;
    margin: 0 !important;
  }

  .ya-bottom-nav li a span {
    font-size: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ya-search {
    margin-top: 20px;
  }

  .ya-grid,
  .latest-manga-grid,
  .search-results .manga-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 16px;
  }

  /* CRITICAL FIX for search results on mobile */
  .ya-search-results {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: calc(100vw - 32px) !important;
    left: 1px !important;
    right: 16px !important;
    overflow: hidden !important;
  }

  .ya-search-results .ya-result-item {
    padding: 8px 10px !important;
    gap: 10px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .ya-search-results .ya-result-item img {
    width: 50px !important;
    height: 70px !important;
    flex-shrink: 0 !important;
  }

  .ya-search-results .ya-result-details {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: calc(100% - 60px) !important;
    overflow: hidden !important;
  }

  .ya-search-results .sr-title {
    font-size: 16px !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    word-break: break-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
  }

  .ya-search-results .ya-result-meta {
    gap: 8px !important;
    font-size: 11px !important;
    flex-wrap: wrap !important;
  }
}

/* 📲 TABLET: 769–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .ya-menu {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .ya-bottom-nav {
    display: none !important;
  }

  body {
    padding-top: 80px;
    padding-bottom: 0 !important;
  }

  /* FIX suprapunere search */
  .ya-search {
    margin-top: 20px !important;
  }

  .ya-grid,
  .latest-manga-grid,
  .search-results .manga-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .ya-header-inner {
    padding-right: 12px;
    justify-content: space-between;
    width: 100%;
  }

  .ya-right > *:empty {
    display: none !important;
  }
}

/* 💻 DESKTOP: 1025px+ */
@media (min-width: 1025px) {
  .ya-menu {
    display: flex !important;
  }

  .ya-bottom-nav {
    display: none !important;
  }

  body {
    padding-top: 90px;
    padding-bottom: 0 !important;
  }

  .ya-grid,
  .latest-manga-grid,
  .search-results .manga-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 420px) {
  .auth-buttons {
    flex-direction: row;
    gap: 6px;
  }

  .auth-buttons a {
    font-size: 12px;
    padding: 6px 8px;
    margin: 0;
  }
}

@media (max-width: 375px) {
  .ya-header-inner {
    padding: 6px 10px;
  }

  .ya-right {
    gap: 4px;
  }

  .auth-btn.login,
  .auth-btn.register,
  .auth-btn.logout {
    font-size: 10px;
    padding: 3px 6px;
  }

  .ya-bottom-nav a {
    font-size: 9px;
    padding: 4px 0;
  }

  .ya-search {
    padding: 0 10px;
  }

  .ya-section {
    padding: 0 10px;
  }

  .ya-grid {
    gap: 8px;
  }
}

/* ULTRA SMALL (UX improvement - hide register button) */
@media (max-width: 360px) {
  .auth-btn.register {
    display: none;
  }
}

/* === CLEANED: Old breakpoint definitions removed ===
   See FINAL HEADER / MENU BREAKPOINT OVERRIDE at end of file */




/* DISABLE ADMIN BAR ON MOBILE */
@media (max-width: 782px) {
  #wpadminbar {
    position: absolute !important;
    top: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 782px) {
  html {
    margin-top: 0 !important;
  }
}

/* === CONFLICTING BREAKPOINT RULES REMOVED === */
/* Bottom nav is now controlled by clean 3-breakpoint structure */

.manga-carousel {
  height: 260px;
  position: relative;
  overflow: hidden;
  padding: 0 8px;
}

.manga-carousel .anime-cell img {
  width: 184px;
  height: 260px;
  
}

.manga-carousel .carousel-root {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
  cursor: default;
}

.manga-carousel .carousel-viewport {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
}

.manga-carousel .carousel-track {
  display: flex;
  touch-action: pan-y;
}

.manga-carousel .carousel-root::-webkit-scrollbar {
  display: none;
}

.manga-carousel .carousel-root.dragging {
  cursor: grabbing;
  user-select: none;
}

.manga-carousel .slick-prev,
.manga-carousel .slick-next {
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 480px) {
  .manga-carousel .anime-cell img {
    width: 140px;
    height: 200px;
  }
}

/* Mobile: carousel touch - vertical scroll always allowed */
@media (max-width: 768px) {
  .manga-carousel,
  .manga-carousel .carousel-viewport,
  .manga-carousel .carousel-track,
  .manga-carousel .manga-cell {
    touch-action: pan-y;
  }
}

.manga-carousel .manga-cell{
  width:180px;
  height:240px;
  position:relative;
  flex:0 0 auto;
}
.manga-carousel .manga-cell a {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}
.manga-carousel .manga-cell img{
  width:100%;
  height:100%;
  
  /* pointer-events: none; */ /* Removed to allow clicks */
  display: block;
}

.manga-carousel .manga-title{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:8px 10px;
  font-size:13px;
  font-weight: 600;
  color:#fff;
  background:linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manga-carousel .manga-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: rgba(255, 77, 79, 1);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgb(189, 48, 51);
  white-space: nowrap;
  height: auto;
  line-height: 1.2;
}

.manga-carousel .manga-badge svg {
  display: block;
}

.manga-carousel .manga-badge span {
  display: flex;
  align-items: center;
  height: 14px;
  line-height: 1;
}

.manga-carousel .manga-badge:hover {
  transform: scale(1.1) translateZ(0);
  box-shadow: 0 0 20px rgba(255, 77, 79), inset 0 0 10px rgba(255, 255, 255, 0.1);
  background: rgb(255, 1, 1);
}

.badge-icon {
  width: 14px;
  height: 14px;
  min-width: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

.manga-carousel .manga-badge:hover .badge-icon {
  animation: badge-bounce 0.6s ease;
}

@keyframes badge-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

@media (max-width: 480px) {
  .manga-carousel .manga-cell {
    width: 140px;
    height: 210px;
  }
}

.manga-carousel{
  display:flex;
  gap:8px;
  overflow:hidden;
}

.manga-carousel .arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;

  width: 32px;
  height: 32px;
  border-radius: 50%;

  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  cursor: pointer;

  transition: background 0.2s ease, transform 0.2s ease;
}

.manga-carousel .arrow:hover {
  background: rgba(0,0,0,0.75);
  transform: translateY(-50%) scale(1.05);
}

.manga-carousel .arrow.left{
  left: 6px;
}
.manga-carousel .arrow.right{
  right: 6px;
}

@media (max-width: 768px) {
  .manga-carousel .arrow { display: none; }
}

.manga-carousel .manga-cell{
  cursor:pointer;
}

.manga-carousel .manga-cell:hover img{
  filter:brightness(.85);
}

.popular-today{ display:block; }

.popular-manga{
  display:block;
  width:100%;
  margin-bottom:40px;
  padding: 0 12px 0 12px;
}

.recently-added-section,
.recommended-section,
.popular-manga {
  padding-bottom: 0 !important;
}

.popular-manga .section-title{
  margin:0 0 20px 0;
  position:relative;
  z-index:2;
}

.manga-carousel.popular-today{
  position:relative;
  overflow:hidden;
  display: flex;
  justify-content: center;
}

.carousel--active .carousel-root {
  justify-content: flex-start;
}

.carousel--static .carousel-root {
  justify-content: center;
  transform: none !important;
}

.carousel--static .arrow {
  display: none;
}

@media (max-width: 768px) {
  .manga-carousel.popular-today {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    padding: 0;
  }
  
  .manga-carousel.popular-today .carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scroll-behavior: smooth;
  }
}

@media (max-width: 768px) {
  .manga-carousel.popular-today > .carousel-root {
    display: flex;
    gap: 12px;
    width: max-content;
  }
}

@media (max-width: 768px) {
  .manga-carousel.popular-today .manga-cell {
    flex: 0 0 auto;
  }
}

.manga-carousel .manga-cell{
  flex:0 0 auto;
  width:160px;
  height:240px;
}

.popular-manga,
.manga-carousel,
.section-title{
  position:static;
  font-size: 16px;
  font-weight: 500;
}

.popular-manga *{
  top:auto;
  left:auto;
}

.section-title,
.section-header h2 {
  text-align: center;
  padding: 0px 10px !important;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45) !important;
  color: #fff;
}

.section-header h2 {
  width: fit-content;
  display: inline-block;
  margin: 0 auto;
  
}

section, .ya-section, .page-wrapper, .site-wrapper, .content-wrapper, .site-content, .content-area {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}


@media(max-width:768px){
  .manga-carousel .manga-cell{
    width: 140px;
    height: 210px;
  }
  
  .popular-manga .section-title{
    margin-bottom:16px;
  }
}

.cele-mai-recente{
  clear: both;
  margin-top: 32px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  background: var(--head);
}

/* popular recent should show 8 items per row on desktop */
.cele-mai-recente .latest-manga-grid {
  grid-template-columns: repeat(8, 1fr) !important;
}

/* make each cell fill its column and have fixed height */
.cele-mai-recente .latest-manga-item {
  width: 100%;
  /* slightly shorter portrait ratio so covers aren't too tall */
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.cele-mai-recente .latest-manga-item .cover,
.cele-mai-recente .latest-manga-item .manga-poster-wrap {
  height: 100%;
}

/* 3 per row on narrow screens */
@media (max-width: 768px) {
  .cele-mai-recente .latest-manga-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.manga-last-chapters {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.chapter-pill {
    background: #2b2b2b;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    line-height: 1;
    position: relative;
}
.chapter-pill.new {
    background: #13667a;
    color: #fff;
}
.new-badge {
  background: #d32f2f;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    margin-right: 4px;
}

.manga-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
}

.manga-rating .rating-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
}

.manga-rating .rating-stars input {
    display: none;
}

.manga-rating .rating-stars label {
    font-size: 14px;
    color: #007bff;
    cursor: default;
    margin: 0 1px;
}

.manga-rating .rating-stars input:checked ~ label {
    color: #007bff;
}

.manga-rating .rating-value {
    color: #fff;
    font-size: 12px;
}

.manga-carousel .arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:28px;
  color:#fff;
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.manga-carousel:hover .arrow{
  opacity:1;
  pointer-events:auto;
}

.manga-carousel .arrow.left{
  left:10px;
}

.popular-manga {
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 1024px) {
  .popular-manga {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.manga-carousel {
  overflow: hidden;
  width: 100%;
  cursor: default;
  padding-left: 40px;
  box-sizing: border-box;
}

.manga-carousel.dragging {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  transform: translateX(0);
  transition: transform 0.4s ease;
  user-select: none;
}

/* ==================== CAROUSEL WRAPPER - RESPONSIVE FIX ==================== */
.manga-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
  overflow: visible;
}

.carousel-viewport {
  overflow: hidden !important;
  width: 100%;
  user-select: none;
}

.carousel-track {
  display: flex;
  gap: 12px;
  transform: translateX(0);
  transition: transform 0.35s ease;
  will-change: transform;
  overflow: hidden !important;
  width: max-content;
  touch-action: pan-y;
  user-select: none;
}

/* ==================== CAROUSEL CELLS ==================== */
.manga-cell {
  flex: 0 0 180px;
  max-width: none;
}

.manga-cell img {
  width: 100%;
  height: 100%;
  
}

/* ==================== NAVIGATION BUTTONS - RESPONSIVE ==================== */
/* FIX SĂGEȚI DUBLATE - ascunde sagetile default ale temei */
.swiper-button-next,
.swiper-button-prev,
.owl-prev,
.owl-next {
  display: none !important;
}

/* șterge orice icon-font din săgeți */
.carousel-arrow::before,
.carousel-arrow i {
  display: none !important;
}

/* PREV / NEXT buttons – relative position to carousel (FIX RESPONSIVE) */
.carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: auto;
  cursor: pointer;
  
  /* Use text arrows from HTML instead of SVG background */
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

/* ==================== MEDIA QUERIES - RESPONSIVE ==================== */

/* DESKTOP MARE (≥1600px) */
@media (min-width: 1600px) {
  .manga-carousel {
    padding: 0;
  }

  .carousel-arrow.left {
    left: 10px;
  }

  .carousel-arrow.right {
    right: 10px;
  }
}

/* LAPTOP STANDARD (1200px - 1599px) */
@media (max-width: 1599px) and (min-width: 1200px) {
  .manga-carousel {
    max-width: 1200px;
    padding: 0;
  }
}

/* LAPTOP MIC (1024px - 1199px) */
@media (max-width: 1199px) {
  .manga-carousel {
    max-width: 100%;
    padding: 0;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    background-size: 18px;
  }

  .carousel-arrow.left {
    left: 8px;
  }

  .carousel-arrow.right {
    right: 8px;
  }

  .manga-cell {
    flex: 0 0 160px;
  }
}

/* TABLET (769px - 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
  .manga-carousel {
    padding: 0;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    background-size: 16px;
  }

  .carousel-arrow.left {
    left: 6px;
  }

  .carousel-arrow.right {
    right: 6px;
  }

  .manga-cell {
    flex: 0 0 140px;
  }
}

/* MOBILE (768px și mai mic) - OVERLAY BUTTONS */
@media (max-width: 768px) {
  .manga-carousel {
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  .carousel-viewport {
    padding: 0 10px;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
    background-size: 15px;
    z-index: 20;
  }

  .carousel-arrow.left {
    left: 0;
  }

  .carousel-arrow.right {
    right: 0;
  }

  .manga-cell {
    flex: 0 0 140px;
    width: 140px;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .manga-cell img {
    width: 100%;
    height: 100%;
    
  }
}

/* MOBILE MIC (≤480px) */
@media (max-width: 480px) {
  .manga-cell {
    flex: 0 0 auto;
    width: 38vw;
    height: auto;
    aspect-ratio: 2 / 3;
  }
}

/* UPDATE ITEMS LIST STYLE */
.latest-manga-grid {
  display: grid;
  gap: 16px;
}

/* === REMOVED: conflicting 1200px grid rule === */

/* === REMOVED: conflicting 1024-1199px and 599px grid rules ===
   All grids now controlled by clean unified breakpoint system at end */


.latest-manga-item {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

@media (min-width: 1025px) {
  #latest-new-grid {
    row-gap: 16px;
    overflow: hidden;
  }

  #latest-new-grid .latest-manga-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    overflow: visible;
  }

  #latest-new-grid .latest-manga-item:nth-last-child(-n+5) {
    margin-bottom: 0;
  }
}

.latest-manga-item:hover {
  /* disable animation and visual shift by default */
  transform: none;
  box-shadow: none;
}

/* restore hover effect only for Populare Recent grid */
.cele-mai-recente .latest-manga-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.latest-manga-item .cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.latest-manga-item .cover img {
  width: 100%;
  height: 100%;
  
  transition: transform 0.2s ease;
}

.latest-manga-item:hover .cover img {
  transform: none;
}

/* zoom only in Populare Recent */
.cele-mai-recente .latest-manga-item:hover .cover img {
  transform: scale(1.05);
}

/* remove zoom on hover for Ultimele Lansări grid */
#latest-new-grid .latest-manga-item .cover:hover img,
#latest-new-grid .latest-manga-item .manga-poster-wrap:hover img {
  transform: none;
}

.latest-manga-item .cover a {
  display: block;
  width: 100%;
  height: 100%;
}

.latest-manga-item .title-over-image {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 8px 10px;
  /* make gradient extend all the way to bottom (solid dark) */
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.8) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  white-space: nowrap;
  overflow: hidden; /* general style remains */
}

/* wrapper for title + chapter badge so they share a background */
.cele-mai-recente .cover-labels {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.5);
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 5;
}

/* item-text layout for Populare Recent (no badge show) */
.cele-mai-recente .item-text {
  position: absolute;
  left: 0;
  right: 0;
  /* keep overlay flush with bottom so chapter badge stays down */
  bottom: 0;
  padding: 0 5px;
  background-color: rgba(0,0,0,0.5);
  z-index: 5;
}

/* lift only the title text a bit from the bottom edge */
.cele-mai-recente .item-text .item-text-inner .item-title {
  padding-bottom: 6px;
  font-size: .875rem;
}

/* ensure manga titles in Populare Recent are readable */
.cele-mai-recente .item-text .item-text-inner .item-title {
  font-size: .875rem;
}

/* ensure consistent widths when using row-cols-3 in Populare Recent */
.cele-mai-recente .row-cols-3 > * {
    flex: 0 0 auto;
    width: 33.33333%;
}

/* Hide Recomandate and Cele mai populare sections on front page */
.recommended-section,
.popular-manga {
  display: none !important;
}

.cele-mai-recente .item-text .item-text-inner {
  overflow: hidden;
}
.cele-mai-recente .item-text .item-text-inner .item-title {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  text-overflow: ellipsis;
  text-decoration: none;
  line-height: 1.25rem;
  overflow: hidden;
}
.cele-mai-recente .item-text .item-text-inner .item-volch {
  display: block;
  font-size: 0.8rem;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}

/* move title up on popular recent covers so it clears the chapter badge */
.cele-mai-recente .latest-manga-item .title-over-image {
  bottom: 22px; /* adjust as needed to sit above badge */
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.latest-manga-item .title-over-image:hover {
  color: #13667a;
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
}

.latest-manga-item .rating {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
}

.rating-stars {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1;
}

.rating-stars::before {
  content: "★★★★★★★★★★";
  color: #333;
}

.rating-stars::after {
  content: "★★★★★★★★★★";
  color: #f5c518;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  width: calc(var(--rating) / 10 * 100%);
}

.latest-manga-item .rating-stars {
  position: relative;
  display: inline-block;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1;
  flex: unset;
}

.rating-score {
  margin-left: 6px;
  color: #999;
  font-size: 12px;
}

.latest-manga-item .chapters {
  padding: 0 10px 10px;
}

/* override horizontal padding inside latest-new-grid specifically */
#latest-new-grid .latest-manga-item .chapters {
  padding-left: 0;
  padding-right: 10px;
}

.latest-manga-item .chapter-link {
  margin-bottom: 4px;
}

.latest-manga-item .chapter-link a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 0;
}

.latest-manga-item .chapter-link a:hover {
  color: #13667a;
}

/* disable hover color change for all chapter links */
.latest-manga-item .chapters .chapter-link a:hover {
  color: inherit;
}

.chapter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.chapter-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem; /* slightly larger */
}

#latest-new-grid .chapters .chapter-link {
  margin-bottom: 6px; /* a bit more breathing room */
}

/* ===== FRONT PAGE POSTER RATING OVERLAY ===== */

/* ==========================================================================
   FRONT PAGE - "Ultimele Lansări" tweaks
   Smaller covers and fixed three‑column layout regardless of viewport width.
   We target the #latest-new-grid id so the other ya-grid sections stay intact.
   ========================================================================== */

#latest-new-grid {
  /* force exactly three items per row; covers will shrink accordingly */
  grid-template-columns: repeat(3, 1fr) !important;
  justify-items: center; /* keep smaller cards centered in each column */
}

#latest-new-grid .latest-manga-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  /* make card fill the entire grid column so all cards have equal width */
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

#latest-new-grid .latest-manga-item .manga-poster-wrap {
  width: 150px; /* slightly smaller cover */
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
  position: relative;
}

#latest-new-grid .latest-manga-item .manga-poster-wrap img,
#latest-new-grid .latest-manga-item .cover img,
#popular-recent-grid .latest-manga-item .manga-poster-wrap img,
#popular-recent-grid .latest-manga-item .cover img,
.cele-mai-recente .latest-manga-item .manga-poster-wrap img,
.cele-mai-recente .latest-manga-item .cover img {
  width: 100%;
  height: 100%;
  display: block;
  filter: none;
  transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  will-change: filter;
}

#latest-new-grid .latest-manga-item .manga-poster-wrap:hover img,
#latest-new-grid .latest-manga-item .cover:hover img,
#popular-recent-grid .latest-manga-item .manga-poster-wrap:hover img,
#popular-recent-grid .latest-manga-item .cover:hover img,
.cele-mai-recente .latest-manga-item .manga-poster-wrap:hover img,
.cele-mai-recente .latest-manga-item .cover:hover img {
  filter: saturate(1.5);
}

#latest-new-grid .latest-manga-item .manga-poster-wrap:hover ~ .latest-manga-info .manga-title a,
#latest-new-grid .latest-manga-item .cover:hover ~ .latest-manga-info .manga-title a,
#popular-recent-grid .latest-manga-item .manga-poster-wrap:hover .item-title,
.cele-mai-recente .latest-manga-item .manga-poster-wrap:hover .item-title,
.recently-added-swiper .manga-cover:hover + .manga-title {
  color: #13667a !important;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#latest-new-grid .translator-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 15, 15, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

#latest-new-grid .translator-badge img {
  width: 100%;
  height: 100%;
  
  display: block;
}

#latest-new-grid .latest-manga-info {
  padding-left: 16px; /* larger gap to push text further right */
}
#latest-new-grid .manga-genres {
  padding-left: 0;
}

/* title itself sits flush left of the info column */
#latest-new-grid .manga-title {
  padding-left: 0;
  text-align: left !important;
  font-weight: 900 !important;
}

/* align title/genres vertically */
#latest-new-grid .latest-manga-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto; /* allow info area to grow and not push poster */
  min-width: 120px; /* maintain minimum space even if text is short */
  padding-bottom: 34px;
}

#latest-new-grid .translator-badge {
  position: absolute;
  bottom: 8px;
  left: 0px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 15, 15, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

#latest-new-grid .translator-badge img {
  width: 100%;
  height: 100%;
  
  display: block;
}

#latest-new-grid .manga-title a {
  /* remove indent so title aligns directly under genres */
  text-indent: 0;
  font-weight: 900 !important; /* extra heavy to override any inheritance */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* reset indent if there's no flag - not currently used but mirrors sample */
#latest-new-grid .manga-title.no-flag a {
  text-indent: initial;
}

#latest-new-grid .manga-genres {
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1rem;
  margin-top: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* red genres should appear bolder in latest updates */
#latest-new-grid .manga-genres a, 
#latest-new-grid .manga-genres a:visited,
#latest-new-grid .manga-genres span {
  color: inherit !important;
  text-decoration: none;
}

#latest-new-grid .manga-genres .genre-red,
#latest-new-grid .manga-genres a.genre-red {
  font-weight: 800 !important;
  color: inherit !important;
}

#latest-new-grid .chapters {
  margin-top: 12px; /* push chapter info further down */
  padding-left: 0; /* align chapters with genres/title */
}

/* time label for chapters instead of "NOU" badge */
#latest-new-grid .chapter-age {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #aaa;
  margin-left: 6px;
}

#latest-new-grid .chapter-translator-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 15, 15, 0.95);
}

#latest-new-grid .chapter-translator-icon img {
  width: 100%;
  height: 100%;
  
  display: block;
}

/* mobile fallback: two columns for sensible spacing */
@media (max-width: 599px) {
  /* make cards fill available space (one column by default) */
  #latest-new-grid {
    grid-template-columns: 1fr !important;
  }
  /* full‑width cards with ample height */
  #latest-new-grid .latest-manga-item {
    align-items: flex-start;
    width: 100%;
    max-width: none;
  }
  /* bigger poster to go full width? keep 100px or expand as needed */
  #latest-new-grid .latest-manga-item .manga-poster-wrap {
    width: 120px;
  }
  #latest-new-grid .manga-title a {
    text-indent: 0;
  }
  #latest-new-grid .latest-manga-info {
    padding-left: 8px;
    text-align: left;
  }
}

/* phone: one manga per row */
@media (max-width: 480px) {
  #latest-new-grid {
    grid-template-columns: 1fr !important;
  }
}

/* hover decoration for Populare Recent titles and chapters */
.cele-mai-recente .item-text .item-text-inner .item-title:hover,
.cele-mai-recente .chapter-link a:hover,
.cele-mai-recente .item-text .item-text-inner .item-volch:hover {
  text-decoration: underline;
}

/* hover decoration for Ultimele Lansări titles and chapters */
#latest-new-grid .manga-title a:hover,
#latest-new-grid .chapter-link a:hover {
  text-decoration: underline;
}

/* ensure Popular Recent never shows more than 15 items on mobile even after sorting */
@media (max-width: 599px) {
  #popular-recent-grid > .latest-manga-item:nth-child(n+16) {
    display: none !important;
  }
}

/* ==========================================================================
*/

.manga-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #1a1a1a;
  contain: layout style paint;
}

.manga-poster-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.2s ease;
  opacity: 1;
  will-change: transform;
}

.latest-manga-item:hover .manga-poster-wrap img {
  transform: none;
}

/* and for poster-wrap inside Populare Recent */
.cele-mai-recente .latest-manga-item:hover .manga-poster-wrap img {
  transform: scale(1.05);
}

.manga-poster-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.manga-poster-wrap .chapter-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
}

.cover-rating-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(3, 199, 90, 0.95);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cover-rating-star {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1;
}

.cover-rating-value {
  line-height: 1;
}

.poster-rating-overlay {
  position: absolute;
  top: 6px;
  left: 0%;
  right: auto;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.poster-rating-overlay .overlay-left {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.75);
  padding: 4px 8px;
  border-radius: 4px;
}

.poster-rating-overlay .overlay-left .manga-type {
  font-size: 11px;
  font-weight: 700;
  color: #13667a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Type-specific colors */
.poster-rating-overlay .overlay-left .manga-type.type-manga {
  color: #fff;
}

.poster-rating-overlay .overlay-left .manga-type.type-manhua {
  color: #ff6b35;
}

.poster-rating-overlay .overlay-left .manga-type.type-manhwa {
  color: #3b82f6;
}

/* Manga Status */
.poster-rating-overlay .overlay-left .manga-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

.poster-rating-overlay .overlay-left .manga-status.status-ongoing {
  color: #fff;
  background: rgba(3, 199, 90, 0.7);
}

.poster-rating-overlay .overlay-left .manga-status.status-completed {
  color: #fff;
  background: rgba(100, 116, 139, 0.7);
}

.poster-rating-overlay .overlay-left .manga-status.status-hiatus {
  color: #fff;
  background: rgba(255, 107, 53, 0.7);
}

.poster-rating-overlay .overlay-left .manga-status.status-dropped {
  color: #fff;
  background: rgba(239, 68, 68, 0.7);
}

/* 18+ Indicator */
.poster-rating-overlay .overlay-left .manga-18-indicator {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 4px;
  color: #fff;
  background: rgba(220, 38, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* hide rating/type/status overlay where not needed */
.poster-rating-overlay {
  display: none !important;
}
/* 18+ Overlay (below poster-rating-overlay) */
.manga-18-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(220, 38, 38, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 8px;
  text-align: center;
  border-radius: 0 0 8px 8px;
  z-index: 2;
}

/* Mobile styles for 18+ overlay */
@media (max-width: 768px) {
  .manga-18-overlay {
    font-size: 11px;
    padding: 10px 6px;
  }
}

@media (max-width: 480px) {
  .manga-18-overlay {
    font-size: 10px;
    padding: 10px 4px;
  }
}

/* Rating Badge */
.poster-rating-overlay .overlay-left .rating-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(245, 196, 0, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

.poster-rating-overlay .overlay-center {
  position: absolute;
  right: 8px;
  bottom: 8px;
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 4px;
  border: 2px solid #f5c400;
}

.poster-rating-overlay .star {
  display: none;
}

.poster-rating-overlay .star.filled {
  background: #f5c400;
}

.poster-rating-overlay .star.half {
  background: #f5c400;
  opacity: 0.5;
}

.poster-rating-overlay .rating-number {
  font-size: 14px;
  font-weight: 700;
  color: #f5c400;
}

.chapter-badge {
  justify-self: end;
  flex-shrink: 0;
  display: inline-block;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  background-color: #13667a;
}

.latest-manga-item .chapter-row:hover {
  background: #3a3a3a;
}

/* MOBILE ADJUSTMENTS FOR LATEST MANGA GRID */
@media (max-width: 599px) {
  .latest-manga-grid {
    gap: 12px;
  }

  .latest-manga-item .title-over-image {
    font-size: 13px;
    padding: 6px 8px;
  }

  .latest-manga-item .rating {
    padding: 6px 8px;
    font-size: 12px;
  }

  .rating-stars {
    font-size: 16px;
  }

  .latest-manga-item .chapters {
    padding: 0 8px 8px;
  }

  .latest-manga-item .chapter-link a {
    font-size: 11px;
    padding: 3px 0;
  }
}

.badge-new {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  text-transform: uppercase;
}

/* MOBILE STYLES FOR BADGE */
@media (max-width: 768px) {
  .chapter-badge {
    font-size: 9px;
    padding: 1px 4px;
    background-color: #13667a;
  }
}

.manga-title,
.latest-manga-item .manga-title,
.page-listing-item .post-title,
.page-item-detail .post-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.latest-manga-item,
.page-item-detail,
.item-summary {
    overflow: hidden;
}

/* Advanced Search Page - with sidebar layout */
.advanced-search-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex !important;
  gap: 20px !important;
}

.search-container {
  display: flex !important;
  gap: 20px !important;
  width: 100% !important;
}

.search-sidebar {
  width: 220px !important;
  background: #1a1a1a !important;
  padding: 20px !important;
  border-radius: 8px !important;
  height: fit-content !important;
  position: sticky !important;
  top: 80px !important;
  flex-shrink: 0 !important;
}

.search-sidebar h3 {
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 15px !important;
  border-bottom: 2px solid #13667a !important;
  padding-bottom: 10px !important;
  margin-top: 0 !important;
}

.genres-filter {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  gap: 10px !important;
}

.genre-item {
  display: flex !important;
}

.genre-link {
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 14px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  transition: all 0.3s ease !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: #242424 !important;
  border: 1px solid #333 !important;
  font-weight: 500 !important;
}

.genre-link:hover {
  color: #fff !important;
  background: #303030 !important;
  border-color: #13667a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(3, 199, 90, 0.2) !important;
}

.genre-link.active {
  color: #000 !important;
  background: #13667a !important;
  border-color: #02a044 !important;
  font-weight: 600 !important;
}

.genre-count {
  color: inherit !important;
  font-size: 11px !important;
  margin-left: 4px !important;
  opacity: 0.8 !important;
}

.search-results {
  flex: 1 !important;
  min-width: 0 !important;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-count {
  font-weight: bold;
}

.order-by {
  display: flex;
  gap: 15px;
}

.order-by a {
  text-decoration: none;
  color: #aaa;
  padding: 5px 0;
  background: #242424;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.order-by a:hover {
  background: #303030;
  color: #fff;
}

.order-by a.active {
  color: #000;
  background: #13667a;
  font-weight: 600;
}

.manga-row {
  display: flex;
  gap: 20px;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.manga-row img {
  width: 120px;
  border-radius: 6px;
}

.manga-row .info {
  flex: 1;
}

.manga-row h3 {
  margin: 0 0 10px 0;
}

.manga-row p {
  margin: 5px 0;
}

.latest {
  display: block;
  margin-top: 10px;
  color: #666;
  font-size: 0.9em;
}

/* Fix long manga titles */
.sm-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Single Manga Header Fix - uses global body padding-top */
.single-manga-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.single-manga-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.single-manga-header .manga-cover {
  width: 180px;
  border-radius: 10px;
  flex-shrink: 0;
}

.single-manga-header .manga-info h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.single-manga-header .manga-status,
.single-manga-header .manga-rating {
  font-size: 14px;
  color: #f5c518;
}

@media (max-width: 768px) {
  .single-manga-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .single-manga-header .manga-cover {
    width: 140px;
  }
}

/* Mobile optimizations for advanced search page */
@media (max-width: 768px) {
  .advanced-search-page {
    flex-direction: column !important;
  }

  .search-sidebar {
    width: 100% !important;
    position: static !important;
  }

  .genres-filter {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 10px !important;
  }

  .genre-link {
    text-align: center !important;
    padding: 10px 8px !important;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .results-count {
    font-size: 13px;
    font-weight: 600;
  }

  .order-by {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
  }

  .order-by a {
    font-size: 12px;
    padding: 4px 0;
  }

  .manga-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #222;
  }

  .manga-row img {
    width: 72px;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .manga-row .info {
    flex: 1;
    min-width: 0;
  }

  .manga-row .info h3 a {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .manga-row .info p {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
  }

  /* Search results mobile */
  .search-results .manga-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .search-results .manga-card {
    height: 240px;
  }

  .search-results .manga-card img {
    height: 65%;
  }

  .manga-title-overlay {
    padding: 8px 12px;
    font-size: 14px;
  }

  .manga-card-content p {
    font-size: 15px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .search-results .manga-meta {
    gap: 12px;
  }

  .search-results .manga-meta .status,
  .search-results .manga-meta .rating,
  .search-results .manga-meta .year {
    font-size: 11px;
    padding: 4px 8px;
  }

  .advanced-search-page {
    padding: 10px;
  }

  body {
    overflow-x: hidden;
  }

  .site-footer {
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
  }

  .footer-links {
    font-size: 0.8em;
    white-space: normal;
  }

  .footer-links a {
    margin: 0 1px;
  }

  .footer-links a, .footer-links a:link, .footer-links a:visited, .footer-links a:active {
    color: #fff !important;
  }

  .footer-links a:hover {
    color: #13667a;
  }
}

/* Front page manga title fix */
.manga-title {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: #fff;
}

.manga-title a {
    color: #fff;
    text-decoration: none;
}

.manga-poster-wrap {
    position: relative;
}

.poster-rating-overlay {
    z-index: 2;
}

.manga-title {
    position: relative;
    z-index: 1;
}

/* ═════════════════════════════════════════════════════════════════════════════
   READER PROFILE STYLES
   ═════════════════════════════════════════════════════════════════════════════ */

.reader-profile {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-banner {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #444;
    background: linear-gradient(135deg, #0f0f0f, #1b1b1b, #0f0f0f);
}

.profile-header {
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    
}

.profile-info {
    flex: 1;
}

.profile-username {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.profile-status {
    margin-bottom: 10px;
}

.status.online {
    color: #00ff88;
    font-weight: 600;
}

.status.offline {
    color: #aaa;
    font-weight: 500;
}

.profile-level {
    font-size: 16px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.xp-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #444;
}

.xp-section h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 20px;
}

.xp-bar-container {
    position: relative;
    margin-bottom: 10px;
}

.xp-bar {
    width: 100%;
    height: 20px;
    background: #444;
    border-radius: 10px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #13667a, #ff6b35);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.xp-text {
    text-align: center;
    color: #ccc;
    font-size: 14px;
    margin-top: 5px;
}

.xp-next {
    color: #aaa;
    font-size: 14px;
    margin-top: 10px;
}

.xp-max {
    color: #ffd700;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 600;
}

.stats-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #444;
}

.stats-section h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #444;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: #ccc;
    font-size: 14px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN FOR READER PROFILE
   ═════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .reader-profile {
        padding: 10px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-username {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-number {
        font-size: 20px;
    }
}

/* ═════════════════════════════════════════════════════════════════════════════
   FINAL HEADER / MENU BREAKPOINT OVERRIDE
   Ensures ZERO conflicts in 769–1024px tablet zone
   ═════════════════════════════════════════════════════════════════════════════ */

/* =========================
   MOBILE (0–768px)
========================= */
@media (max-width: 768px) {
  .ya-menu {
    display: none !important;
  }

  .ya-bottom-nav {
    display: flex !important;
  }

  body {
    padding-top: 72px;
    padding-bottom: 64px;
  }
}

/* =========================
   TABLET (769–1024px)
========================= */
@media (min-width: 769px) and (max-width: 1024px) {
  .ya-menu {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }

  .ya-bottom-nav {
    display: none !important;
  }

  body {
    padding-top: 80px;
    padding-bottom: 0;
  }

  /* FIX suprapunere search */
  .ya-search {
    margin-top: 20px;
  }
}

/* =========================
   DESKTOP (1025px+)
========================= */
@media (min-width: 1025px) {
  .ya-menu {
    display: flex !important;
  }

  .ya-bottom-nav {
    display: none !important;
  }

  body {
    padding-top: 90px;
    padding-bottom: 0;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
   UNIFIED GRID SYSTEM — CLEAN BREAKPOINTS
   Replaces all conflicting grid definitions above
   ═════════════════════════════════════════════════════════════════════════════ */

.latest-manga-grid,
.ya-grid {
  display: grid;
  gap: 16px;
}

/* 📱 MOBILE: 0–599px */
@media (max-width: 599px) {
  .latest-manga-grid,
  .ya-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* 📲 TABLET: 600–1024px */
@media (min-width: 600px) and (max-width: 1024px) {
  .latest-manga-grid,
  .ya-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

/* 💻 DESKTOP: 1025–1399px */
@media (min-width: 1025px) and (max-width: 1399px) {
  .latest-manga-grid,
  .ya-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }
}

/* 🖥️ DESKTOP MARE: 1400px+ */
@media (min-width: 1400px) {
  .latest-manga-grid,
  .ya-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
   CRITICAL FIX: 740–780px breakpoint (iPad-like zone)
   Ensures header doesn't overlap viewport at exact boundary
   ═════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 740px) and (max-width: 780px) {
  .ya-header-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  body {
    padding-top: 72px;
  }

  /* Force user menu visible on tablet 769-1024px */
  .ya-right,
  .header-user,
  .header-user .user-link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .ya-search-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .search-modal-input-wrap input,
  .ya-search-wrapper .search-icon-btn {
    margin-right: 0 !important;
  }
}

/* TEAM HOVER EFFECT (page-despre) */
.team-grid {
  display: grid;
  gap: 16px;
  width: 100%;
  justify-items: start;
  align-items: start;
}

/* Forțează 1 coloană întotdeauna */
.team-grid > .team-member {
  width: 100%;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px;
  border-radius: 12px;
  background-color: transparent;
}

.team-member .team-avatar {
  width: 70px;
  height: 70px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  
  transition: transform 0.25s ease, filter 0.25s ease;
}

.team-member .team-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-member .team-name {
  font-weight: 700;
  color: #fff;
  margin: 0;
  font-size: 1rem;
}

.team-member .team-role-label {
  font-size: 0.82rem;
  color: #05d875;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-member .team-subtitle {
  font-size: 0.82rem;
  color: #999;
  margin-top: 2px;
}

.team-member .team-avatar:hover {
  transform: scale(1.08);
  filter: brightness(1.08) saturate(1.15);
}

/* ==================== SECTION HEADERS (Generic) ==================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.section-header .see-all {
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.section-header .see-all:hover {
  opacity: 1;
  color: #13667a;
}

/* ==================== RECENTLY ADDED SECTION - MangaYummy Style ==================== */
.recently-added-section {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 16px;
}

/* Swiper Container - PREZENTUĂ ÎNĂLȚIME CU ASPECT-RATIO + ASCUNS PÂNĂ LA INIT */
.recently-added-swiper {
  width: 100%;
  position: relative;
  touch-action: pan-y;
  overflow: hidden;
  min-height: 310px;
  visibility: hidden;
}

.recently-added-swiper .swiper-slide {
  height: auto;
}

/* Swiper Wrapper */
.recently-added-swiper .swiper-wrapper {
  display: flex;
  margin-bottom: 30px;
}

/* Manga Cards - aspect-ratio pe imagini DOAR */
.recently-added-swiper .manga-card {
  display: flex;
  flex-direction: column;
}

.recently-added-swiper .manga-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  
}

/* Uniformizare vizuală: toate coverele identice */
.manga-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  
}

/* Manga Cards - LASA SWIPER SA CONTROLEZE DIMENSIUNILE */
.recently-added-swiper .manga-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.recently-added-swiper .manga-card a {
  display: block;
  text-decoration: none;
}

/* Imagini - BLOCHEAZA DRAG */
.recently-added-swiper img,
.recently-added-swiper .manga-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  
  border-radius: 8px;
  display: block;
  filter: none;
  transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Disable native drag pe desktop */
  -webkit-user-drag: none;
  user-select: none;
}

/* Top 100 page overrides: enforce uniform cover size and keep titles single-line */
.top-100-manga-page .manga-cover {
  height: 280px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
}

.top-100-manga-page .manga-cover img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.top-100-manga-page .manga-info {
  padding: 10px !important;
}

.top-100-manga-page .manga-title a {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block;
}

/* Fallback pentru imagini lipsă */
.manga-no-cover {
  background: #1a1a1a;
  object-fit: contain;
}

.recently-added-swiper .manga-card a:hover img,
.recently-added-swiper .manga-card a:hover .manga-cover {
  filter: saturate(1.5);
}

/* Cursor: default by default; show grabbing while dragging */
.recently-added-swiper .swiper-slide {
  cursor: default;
}
.recently-added-swiper.dragging .swiper-slide {
  cursor: grabbing;
}

.recently-added-swiper .manga-title {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

/* Modern corner ribbon for Top-100 cards */
.top-100-manga-page .top-manga-card .ribbon {
  position: absolute;
  top: 12px;
  left: -38px;
  width: 150px;
  height: 36px;
  background: linear-gradient(90deg,#ff7a18,#13667a);
  color: #fff;
  transform: rotate(-12deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  z-index: 3;
  border-radius: 6px;
  pointer-events: none;
}

.top-100-manga-page .top-manga-card .ribbon span {
  transform: rotate(12deg);
  display: block;
  width: 100%;
  text-align: center;
}

/* Top-3 ribbon variants: visual emphasis only (no z-index/image size changes) */
.top-100-manga-page .top-manga-card[data-position="1"] .ribbon {
  background: linear-gradient(90deg,#ffd700 0%,#ffcf40 100%);
  box-shadow: 0 10px 30px rgba(255,200,0,0.18), 0 2px 8px rgba(0,0,0,0.25);
}
.top-100-manga-page .top-manga-card[data-position="1"] .ribbon span {
  font-size: 0.98rem;
  letter-spacing: 0.4px;
}

.top-100-manga-page .top-manga-card[data-position="2"] .ribbon {
  background: linear-gradient(90deg,#cfcfcf 0%,#9ea0a3 100%);
  box-shadow: 0 8px 22px rgba(150,150,150,0.12), 0 2px 6px rgba(0,0,0,0.18);
}
.top-100-manga-page .top-manga-card[data-position="2"] .ribbon span {
  font-size: 0.92rem;
}

.top-100-manga-page .top-manga-card[data-position="3"] .ribbon {
  background: linear-gradient(90deg,#b87333 0%,#d08a4a 100%);
  box-shadow: 0 8px 22px rgba(184,115,51,0.12), 0 2px 6px rgba(0,0,0,0.18);
}
.top-100-manga-page .top-manga-card[data-position="3"] .ribbon span {
  font-size: 0.92rem;
}

/* Rank styling for top 100 */
.rank {
  font-weight: bold;
  color: #fff;
}

/* Swiper Navigation Buttons - MANGAYUMMY STYLE */
.recently-added-swiper .swiper-button-prev,
.recently-added-swiper .swiper-button-next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
  border: none;
  outline: none;
}

.recently-added-swiper .swiper-button-prev:hover,
.recently-added-swiper .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.85);
}

.recently-added-swiper .swiper-button-prev {
  left: -18px;
}

.recently-added-swiper .swiper-button-next {
  right: -18px;
}

/* Mobile - Hide buttons, swipe only */
@media (max-width: 768px) {
  .recently-added-swiper .swiper-button-prev,
  .recently-added-swiper .swiper-button-next {
    display: none;
  }

  .recently-added-swiper .manga-card {
    width: 110px;
  }
}

/* ==================== RECOMMENDED / POPULAR SLIDER STYLE ==================== */
.recommended-section, .popular-manga {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 16px;
}

/* Swiper Container - PREZENTUĂ ÎNĂLȚIME CU ASPECT-RATIO + ASCUNS PÂNĂ LA INIT */
.recommended-swiper,
.popular-swiper {
  width: 100%;
  position: relative;
  touch-action: pan-y;
  overflow: hidden;
  min-height: 310px;
  visibility: hidden;
}

.recommended-swiper .swiper-slide,
.popular-swiper .swiper-slide {
  height: auto;
}

/* Swiper Wrapper */
.recommended-swiper .swiper-wrapper,
.popular-swiper .swiper-wrapper {
  display: flex;
  margin-bottom: 30px;
}

/* Manga Cards - aspect-ratio pe imagini DOAR */
.recommended-swiper .manga-card,
.popular-swiper .manga-card {
  display: flex;
  flex-direction: column;
}

.recommended-swiper .manga-card img,
.popular-swiper .manga-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  
}

/* Manga Cards - LASA SWIPER SA CONTROLEZE DIMENSIUNILE */
.recommended-swiper .manga-card,
.popular-swiper .manga-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden; /* prevent layer expansion during image zoom */
}

.recommended-swiper .manga-card a,
.popular-swiper .manga-card a {
  display: block;
  text-decoration: none;
}

/* Imagini - BLOCHEAZA DRAG */
.recommended-swiper img,
.recommended-swiper .manga-cover,
.popular-swiper img,
.popular-swiper .manga-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  
  border-radius: 8px;
  display: block;
  transition: transform 0.2s ease;
  
  /* Disable native drag pe desktop */
  -webkit-user-drag: none;
  user-select: none;
}

.recommended-swiper .manga-card a:hover img,
.recommended-swiper .manga-card a:hover .manga-cover,
.popular-swiper .manga-card a:hover img,
.popular-swiper .manga-card a:hover .manga-cover {
  transform: scale(1.05);
}

/* Cursor: default by default; show grabbing while dragging */
.recommended-swiper .swiper-slide,
.popular-swiper .swiper-slide {
  cursor: default;
}
.recommended-swiper.dragging .swiper-slide,
.popular-swiper.dragging .swiper-slide {
  cursor: grabbing;
}

.recommended-swiper .manga-title,
.popular-swiper .manga-title {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

/* Swiper Navigation Buttons - MANGAYUMMY STYLE */
.recommended-swiper .swiper-button-prev,
.recommended-swiper .swiper-button-next,
.popular-swiper .swiper-button-prev,
.popular-swiper .swiper-button-next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
  border: none;
  outline: none;
}

.recommended-swiper .swiper-button-prev:hover,
.recommended-swiper .swiper-button-next:hover,
.popular-swiper .swiper-button-prev:hover,
.popular-swiper .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.85);
}

.recommended-swiper .swiper-button-prev,
.popular-swiper .swiper-button-prev {
  left: -18px;
}

.recommended-swiper .swiper-button-next,
.popular-swiper .swiper-button-next {
  right: -18px;
}

/* Mobile - Hide buttons, swipe only */
@media (max-width: 768px) {
  .recommended-swiper .swiper-button-prev,
  .recommended-swiper .swiper-button-next,
  .popular-swiper .swiper-button-prev,
  .popular-swiper .swiper-button-next {
    display: none;
  }

  .recommended-swiper .manga-card,
  .popular-swiper .manga-card {
    width: 110px;
  }
}

/* ==================== PAGINATION ==================== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0 40px;
  gap: 8px;
}

.pagination-wrapper ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-wrapper li {
  display: inline-block;
  margin: 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  background: #1a1a1a;
  color: #ddd;
  border: 1px solid #333;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  -webkit-tap-highlight-color: rgba(255, 77, 79, 0.4);
}

.pagination-wrapper a:active,
.pagination-wrapper a:focus {
  background: #13667a !important;
  color: #000 !important;
  border-color: #13667a !important;
  outline: none;
}

.pagination-wrapper a:hover {
  background: #13667a;
  color: #000;
  border-color: #13667a;
  transform: translateY(-2px);
}

.pagination-wrapper .page-numbers.current {
  background: #13667a;
  color: #000;
  border-color: #13667a;
  cursor: default;
}

.pagination-wrapper .page-numbers.current:hover {
  transform: none;
}

.pagination-wrapper .prev,
.pagination-wrapper .next {
  font-size: 16px;
  font-weight: bold;
}

.pagination-wrapper .prev:hover,
.pagination-wrapper .next:hover {
  background: #13667a;
  color: #000;
  border-color: #13667a;
}

@media (max-width: 768px) {
  .pagination-wrapper a,
  .pagination-wrapper span {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .pagination a.page-link,
  .pagination .current,
  .pagination a.prev,
  .pagination a.next {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* Genre page pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.pagination a.page-link,
.pagination span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  background: #1a1a1a;
  color: #ddd;
  border: 1px solid #333;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
}

.pagination a.page-link:hover,
.pagination a.page-link:focus,
.pagination a.page-link:active {
  background: #13667a;
  color: #000;
  border-color: #13667a;
  transform: translateY(-2px);
}

.pagination a.page-link.current,
.pagination span.current {
  background: #13667a;
  color: #000;
  border-color: #13667a;
  cursor: default;
  transform: none;
}

.pagination a.prev,
.pagination a.next {
  font-size: 16px;
  font-weight: bold;
}

.footer-strong,
.footer-site-name {
    font-weight: 600; /* bold */
}

.footer-site-name {
    font-size: 18px;
}


/* ═════════════════════════════════════════════════════════════════ */
/* GENRE RED COLORING FOR SENSITIVE/MATURE CONTENT */
/* ═════════════════════════════════════════════════════════════════ */

a.genre-red {
  color: #13667a !important;
  font-weight: 600;
}

a.genre-red:hover {
  color: #ff7875 !important;
  text-decoration: underline;
}
.search-form {
  max-width: 600px;
  margin: 0 auto 30px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-field {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #333;
  border-radius: 25px;
  background: #1a1a1a;
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.search-field:focus {
  border-color: #13667a;
  box-shadow: 0 0 10px rgba(3, 199, 90, 0.3);
}

.search-submit {
  padding: 15px 30px;
  background: #13667a;
  color: #000;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-submit:hover {
  background: #02a84a;
  transform: translateY(-2px);
}

.filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.filters select {
  padding: 10px 15px;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.search-results {
  padding: 40px 0;
  background: #0f0f0f;
}

.search-results .manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.search-results .manga-card {
  background: #222;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  aspect-ratio: 3 / 4;
}

.search-results .manga-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  border-color: #13667a;
}

.search-results .manga-card img {
  width: 100%;
  height: 100%;
  
  transition: all 0.3s ease;
}

.search-results .manga-card:hover img {
  transform: scale(1.05);
}

.search-results .manga-card .poster-rating-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  right: auto;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.search-results .manga-card .poster-rating-overlay .overlay-left {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, 0.75);
  padding: 4px 8px;
  border-radius: 4px;
}

.search-results .manga-card .poster-rating-overlay .overlay-left .manga-type {
  font-size: 11px;
  font-weight: 700;
  color: #13667a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.search-results .manga-card .poster-rating-overlay .overlay-left .manga-type.type-manga {
  color: #fff;
}

.search-results .manga-card .poster-rating-overlay .overlay-left .manga-type.type-manhua {
  color: #ff6b35;
}

.search-results .manga-card .poster-rating-overlay .overlay-left .manga-type.type-manhwa {
  color: #3b82f6;
}

.search-results .manga-card .poster-rating-overlay .overlay-left .manga-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

.search-results .manga-card .poster-rating-overlay .overlay-left .manga-status.status-ongoing {
  color: #fff;
  background: rgba(3, 199, 90, 0.7);
}

.search-results .manga-card .poster-rating-overlay .overlay-left .manga-status.status-completed {
  color: #fff;
  background: rgba(100, 116, 139, 0.7);
}

.search-results .manga-card .poster-rating-overlay .overlay-left .manga-status.status-hiatus {
  color: #fff;
  background: rgba(255, 107, 53, 0.7);
}

.search-results .manga-card .poster-rating-overlay .overlay-left .manga-status.status-dropped {
  color: #fff;
  background: rgba(239, 68, 68, 0.7);
}

.search-results .manga-card .poster-rating-overlay .overlay-left .manga-18-indicator {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 4px;
  color: #fff;
  background: rgba(220, 38, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.manga-card-content {
  padding: 12px 16px;
  background: #1a1a1a;
}

.manga-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  z-index: 2;
}

.manga-title-overlay a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ===== RECRUITMENT BANNER ===== */
.recruitment-banner {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-top: 2px solid #e94560;
    border-bottom: 2px solid #e94560;
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
}
.recruitment-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.recruitment-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.recruitment-icon {
    font-size: 20px;
}
.recruitment-title {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
}
.recruitment-subtitle {
    font-size: 13px;
    color: #aaa;
}
.recruitment-btn {
    background: #e94560;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}
.recruitment-btn:hover {
    background: #c73652;
    color: #fff;
}
@media (max-width: 768px) {
    .recruitment-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.manga-title-overlay a:hover {
  color: #13667a;
}

.manga-card-content h3 a:hover {
  color: #13667a;
}

.manga-card-content p {
  color: #ddd;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-align: left;
}

.page-description .page-title {
  margin-bottom: 10px;
  font-size: 28px;
  color: #fff;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}

.page-description .page-intro {
  color: #ccc;
  font-size: 16px;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* STYLE: page title for "MANGA-URI RECOMANDATE" */
.page-title--recomandate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
    font-size: 28px;
}

@media (max-width: 480px) {
    .page-title--recomandate {
        font-size: 23px;
    }
  }

  @media (max-width: 480px) {
    .page-description .page-title {
        font-size: 22px;
    }
  }


.search-results .manga-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 11px;
}

.search-results .manga-meta .status,
.search-results .manga-meta .rating,
.search-results .manga-meta .year {
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 10px;
}

.search-results .manga-meta .status.ongoing {
  background: rgba(3, 199, 90, 0.7);
  color: #fff;
}

.search-results .manga-meta .status.completed {
  background: rgba(100, 116, 139, 0.7);
  color: #fff;
}

.search-results .manga-meta .status.hiatus {
  background: rgba(255, 107, 53, 0.7);
  color: #fff;
}

.search-results .manga-meta .rating {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.search-results .manga-meta .year {
  background: rgba(153, 153, 153, 0.1);
  color: #ccc;
  border: 1px solid rgba(153, 153, 153, 0.3);
}

.search-results p {
  text-align: center;
  color: #ccc;
  font-size: 18px;
  padding: 40px;
  grid-column: 1 / -1;
}

/* Additional search page styles */
.search-info {
  margin-top: 20px;
}

.search-summary {
  color: #ccc;
  font-size: 16px;
  margin: 0;
}

.manga-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 12px;
}

.status {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
}

.status.ongoing {
  background: #13667a;
  color: #000;
}

.status.completed {
  background: #007cba;
  color: #fff;
}

.rating {
  color: #ffd700;
  font-weight: 500;
}

.year {
  color: #999;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.no-results h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.no-results p {
  color: #ccc;
  font-size: 16px;
  margin-bottom: 20px;
}

.advanced-search-link {
  display: inline-block;
  padding: 12px 24px;
  background: #13667a;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.advanced-search-link:hover {
  background: #02a84a;
  transform: translateY(-2px);
}


