.detials-page-container{

    padding: 0 150px;
}




  /* === Breadcrumb === */

  /* ✅ Breadcrumb container with consistent padding */
  .breadcrumb-container {
    /* padding-inline: clamp(26px, 5%, 80px); */
    margin: 20px 0px;

  }

  .breadcrumb {
    display: flex;
    font-size: 0.7rem;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    /* no width needed here */
  }

  .breadcrumb span {
    flex: 1;                /* take up all remaining space */
    min-width: 0;           /* allow it to shrink below its content width */
    white-space: nowrap;    /* prevent wrapping */
    overflow: hidden;       /* hide overflow */
    text-overflow: ellipsis;/* show “…” */
  }


  .breadcrumb a {
    text-decoration: none;
    color: #bbb; /* ✅ default color for link */
  }

  .breadcrumb a:visited {
    color: #bbb; /* ✅ prevent purple */
  }

  .breadcrumb a:hover {
    color: #e5e5e5; /* optional: show underline only on hover */
  }




  /* === Main Details Layout === */


  .detail-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* padding: 0px 16px; */

  }

  /* ✅ Individual containers */
  .left-panel-container {
    flex: 0 0 240px;
    max-width: 100%;
  }

  .right-panel-container {
    flex: 1 1 500px;
    max-width: 100%;
  }

  /* ✅ Optional spacing */
  .left-panel-container,
  .right-panel-container {
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* === LEFT PANEL === */
  .left-panel {
    width: 100%;
    max-width: 240px;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }
  .cover-image img {
    width: 100%;
    height: auto;
    max-width: 220px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
  }
  .bookmark-btn {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.07);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
  }
  .bookmark-btn:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  .follower-count {
    font-size: 0.75rem;
    color: #ccc;
    text-align: center;
  }
  .rating-container {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
  }



  .rating-row {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    color: #ffc107;
    margin-top: 4px;
  }

  .rating-row .rating-number {
    margin-left: 5px;
    color: #ccc;
    font-size: 0.75rem;
  }

  .rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffc107;
    font-size: 0.8rem;
  }
  .status-type {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .status-type .status-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
  }

  /* === RIGHT PANEL === */
  .right {
    flex: 1 1 500px;
  }
  .title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
  }
  .socials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
  }
  .socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    padding: 6px 10px;
    font-size: 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    height: 26px;
    line-height: 1;
    transition: background 0.3s ease;
  }

  .socials a:hover {
    background: rgba(255, 255, 255, 0.12);
  }



  /* === Summary with Toggle === */
  .summary {
    margin-bottom: 30px;
    font-size: 0.8rem;
  }
  .summary-label {
    font-weight: bold;
    margin-bottom: 5px;
  }
  .summary-text-wrapper {
    position: relative;
    font-size: 0.8rem;
  }
  .summary-text {
    max-height: 6.3em;
    line-height: 1.575;
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    color: #ccc;
    transition: max-height 0.3s ease;
  }
  .summary-text.expanded {
    max-height: none;
    -webkit-line-clamp: unset;
  }
  .toggle-summary {
    margin-top: 5px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
  }

  /* === Meta Info in 2 Columns === */
  .meta-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 30px;
    margin: 20px 0;
  }

  .meta-info .meta-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .meta-info .label {
    font-weight: 600;
    color: #fff;
    font-size: 0.8rem;
  }

  .meta-info .value {
    color: #bbb;
    font-size: 0.7rem;
  }


  /* === Genres Layout === */
  .genres {
    margin-top: 10px;
    font-size: 0.8rem;
  }
  .genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
  }
  .genre-tags button {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
  }


  /* === Chapter Section === */
  .chapter-section {
    padding: 10px clamp(1px, 1%, 10px);
    margin: 20px 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Chapter Section Header */
  .chapter-header h3 {
    padding: 10px 0 5px 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
  }


  .chapter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh; /* လိုအပ်သလို အမြင့်ကို ပြင်နိုင်သည် */
    overflow-y: auto;
    padding-right: 1px; /* scrollbar အတွက် အနည်းငယ်အတွင်းအကွာအဝေး */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  }

  .chapter-list::-webkit-scrollbar {
    width: 1px;
  }

  .chapter-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .chapter-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
  }

  .no-chapters {
    padding: 40px 0;
    text-align: center;
    color: #aaa;
    font-size: 0.85rem;
  }


  .box {
    min-height: 120px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 5px;
  }
  .chapter-thumb img {
    width: 100px;
    height: 130px;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
  }
  .chapter-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 8px 0;
  }


  .chapter-info a{
    text-decoration: none;
  }
  .chapter-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;



  }

  .chapter-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 1;     /* ✅ show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    max-height: 2.6em;          /* optional fallback */
    line-height: 1.3em;         /* adjust based on your font-size */



  }



  .chapter-coin {
    font-size: 0.75rem;
    color: #ffc107;
    white-space: nowrap;
    margin-left: 12px;
  }

  .chapter-number {
    font-size: 0.78rem;
    color: #ccc;
    margin-top: 2px;
  }

  .chapter-badge-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
    height: 100%;
  }

  .chapter-badge {
    font-size: 0.75rem;
    color: gold;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
  }

  .chapter-badge.read {
    color: #00e676;
  }
  .chapter-badge.coin {
    color: gold;
  }



.chapter-access {
    text-align: center;
    margin: 4px 0;
  }

  .access-label {
    font-size: 0.75rem;
    font-weight: 500;
  }

  .access-label.read {
    color: gold;
  }

  .access-label.coin {
    color: #ccc;
  }

  .chapter-number {
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 6px;
  }




  .chapter-meta {
    display: flex;
    justify-content: space-between;
    margin: 0px 0;
  }
  .chapter-number {
    font-size: 0.8rem;
    color: #ccc;
  }
  .vip-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 4px 8px;
    color: #fff;
    font-size: 0.7rem;
    border-radius: 5px;
  }

  /* === Load More === */
  .load-more-container {
    text-align: center;
    margin-top: 20px;
  }
  #load-more {
    padding: 6px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
  }

  .chapter-box-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .chapter-box-link:hover .box {
   background: rgba(255, 255, 255, 0.064);
  }


  /* === Initial Visibility === */
  .container-box .box:nth-child(-n+6) {
    display: flex;
  }


  .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
    background: rgba(255, 255, 255, 0.04); /* semi-transparent */
    backdrop-filter: blur(12px);           /* glass blur */
    -webkit-backdrop-filter: blur(12px);   /* Safari support */
    padding: 20px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    width: 300px;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 14px;

  }


.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.btn {
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.3px;
  }


.cancel-btn {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s, color 0.3s, border 0.3s;
    border-radius: 6px;
  }

  .cancel-btn:hover {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff4c4c;
    border: 1px solid rgba(255, 0, 0, 0.3);
  }


  .confirm-btn {
    background: rgba(0, 255, 150, 0.08); /* glassy green */
    color: #00e676;                      /* neon green */
    border: 1px solid rgba(0, 255, 150, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s, color 0.3s, border 0.3s;
    border-radius: 6px;
  }

  .confirm-btn:hover {
    background: rgba(0, 255, 150, 0.15);
    color: #00ff99;
    border: 1px solid rgba(0, 255, 150, 0.5);
  }


  .btn:hover {
    filter: brightness(1.1);
  }


.modal-status {
  margin-top: 10px;
  font-size: 0.9rem;
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #00e676;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 0.8s linear infinite;
    margin-top: 10px;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .chapter-list {
    contain: content; /* layout/paint isolation to reduce reflow cost */
    -webkit-overflow-scrolling: touch; /* smoother inertia on iOS */
  }

  .box {
    will-change: transform, opacity; /* hint browser for upcoming changes */
  }

  .loading-indicator {
    display: none;
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
    color: #ccc;
  }



  /* === Responsive === */
  @media (max-width: 991px) {
    .detail-wrapper {
      flex-direction: column;
    }
    .nav-center {
      display: none;
    }
    .title {
      text-align: center;
    }

    .detials-page-container{

        padding: 0;
    }

    .main-content{
        padding: 0 3px;
    }


  .chapter-badge {
    font-size: 0.65rem;

    font-weight: bold;
    padding: 4px 10px;

  }

  .chapter-title {
    font-size: 0.75rem;
    font-weight: 500;

  }

  .title{
    font-size: 0.9rem;
  }



  .chapter-coin {
    font-size: 0.6rem;
    color: #ffc107;
    white-space: nowrap;
    /* margin-left: 12px; */
  }

  .chapter-number {
    font-size: 0.65rem;

  }



  .box {
    min-height: 110px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px 6px;
    border-radius: 5px;
  }
  .chapter-thumb img {
    width: 100px;
    height: 130px;
    border-radius: 6px;
    margin: 0;
  }
  .chapter-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 4px 0;
  }





  }
