details summary {
  color: #ffffff;
}
details summary:hover {
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
}
details, details * {
  color: #ffffff;
}
.seen-cell .show-block,
.rating-cell .show-block {
  padding: 15px 0;
}
.next-letter {
  text-align: center;
  margin: 40px 0;
}
.next-letter a {
  font-size: 2.2rem;
  font-family: 'Georgia', serif;
  color: #BFA181;
  text-decoration: none;
  padding: 12px 28px;
  border: 2px solid #BFA181;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-block;
  letter-spacing: 1px;
}
.next-letter a:hover {
  background: #BFA181;
  color: #111;
  box-shadow: 0 0 15px #BFA181, 0 0 30px rgba(191,161,129,0.6);
  transform: translateY(-3px);
}
/* ======================== TOP NAV (small) ======================== */
.top-nav-letter {
  text-align: center;
  margin: 10px 0 0;
}
.top-nav-letter a {
  font-size: 1rem;
  font-family: 'Georgia', serif;
  color: #BFA181;
  text-decoration: none;
  padding: 4px 14px;
  border: 1px solid #BFA181;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  letter-spacing: 0.5px;
  margin: 0 6px;
}
.top-nav-letter a:hover {
  background: #BFA181;
  color: #111;
  box-shadow: 0 0 8px #BFA181;
}
/* ======================== STATUS TAGS ======================== */
.status-tag {
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
}
.status-tag.coming-soon {
  background: #82EEFD;
  color: #2b0a2f;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-right: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 6px rgba(130,238,253,0.7);
}
.status-tag.airing {
  background: #6BFFB0;
  color: #06351c;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-right: 8px;
  letter-spacing: 0.5px;
  font-weight: 600;
  box-shadow: 0 0 4px rgba(107,255,176,0.6), 0 0 8px rgba(107,255,176,0.4);
}
.status-tag.completed {
  color: #ffd966;
  text-shadow: 0 0 6px #fff200;
}
.status-tag.cancelled {
  background: #ff4d6d;
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-right: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 6px rgba(255,77,109,0.6);
}
.status-tag.ended {
  background: #cc0000;
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-right: 8px;
  letter-spacing: 0.5px;
  font-weight: 600;
  box-shadow: 0 0 6px rgba(204,0,0,0.7);
}
.blTag {
  display: inline-block;
  margin: 4px 4px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #2b0a2f;
  border: 1px solid #4cff7f;
  font-size: 13px;
  text-decoration: none;
  color: #4cff7f !important;
  text-shadow: 0 0 6px #4cff7f !important;
  transition: 0.2s;
}
.blTag:hover {
  border-color: #4cff7f;
  box-shadow: 0 0 6px #4cff7f;
  color: #ffffff;
  text-shadow: 0 0 8px #4cff7f;
}
.yuriverseBtn { color: #ff9ad5 !important; border-color: #ff9ad5; text-shadow: 0 0 6px #ff9ad5 !important; }
.yuriverseBtn:hover { box-shadow: 0 0 6px #ff9ad5; }
.universeBtn { color: #82EEFD !important; border-color: #82EEFD; text-shadow: 0 0 6px #82EEFD !important; }
.universeBtn:hover { box-shadow: 0 0 6px #82EEFD; }
.seasonsBtn { color: #ffd966 !important; border-color: #ffd966; text-shadow: 0 0 6px #ffd966 !important; }
.seasonsBtn:hover { box-shadow: 0 0 6px #ffd966; }
.coupleTag {
  display: inline-block;
  margin: 4px 4px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #2b0a2f;
  border: 1px solid #ffd966;
  color: #ffd966;
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}
.coupleTag:hover { border-color: #ffd966; box-shadow: 0 0 4px #ffd966; color: #ffd966; }
.linkedTag {
  display: inline-block;
  margin: 4px 4px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #2b0a2f;
  border: 1px solid #ff9ad5;
  color: #ff9ad5;
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}
.linkedTag:hover { border-color: #ff9ad5; box-shadow: 0 0 6px #ff9ad5; color: #ffffff; }
.linkedRow { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 6px 10px; margin-top: 6px; }
.linkedItem { display: flex; align-items: center; gap: 4px; }
.linkedItem.stack { flex-direction: column; align-items: center; }
.coupleBtn {
  background: #2b0a2f;
  border: 1px solid #ff69b4;
  padding: 3px 8px;
  margin-top: 4px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  color: #ffd966;
  border-color: #ffd966;
}
.coupleBtn:hover { background: #ff69b4; color: white; }
.linkedBtn { border: 1px solid #ff6b6b !important; color: #ff6b6b !important; text-shadow: none !important; }
.linkedBtn:hover { box-shadow: 0 0 6px #ff6b6b; }
.coupleList { display: none; margin-top: 5px; font-size: 14px; text-align: center; }
.coupleList a { color: #82EEFD; text-decoration: none; }
.coupleList a:hover { color: #ffffff; text-shadow: 0 0 8px #82EEFD; }
.sideCoupleTag {
  display: inline-block;
  margin: 4px 4px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #2b0a2f;
  border: 1px solid #ffb6c1;
  color: #ffb6c1 !important;
  font-size: 13px;
  text-decoration: none;
  text-shadow: 0 0 6px #ffb6c1 !important;
  transition: 0.2s;
}
.sideCoupleTag:hover {
  border-color: #ffb6c1;
  box-shadow: 0 0 6px #ffb6c1;
  color: #ffffff;
  text-shadow: 0 0 8px #ffb6c1;
}
/* ======================== GENRE EMOJI TAGS ======================== */
.genreEmojiRow {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 6px;
  vertical-align: middle;
}
.genreEmoji {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  user-select: none;
}
.genreEmoji::after {
  content: attr(data-genre);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #2b0a2f;
  border: 1px solid #6BFF6B;
  color: #eafff0;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 0 6px rgba(107,255,107,0.5);
  z-index: 30;
}
.genreEmoji:hover::after {
  opacity: 1;
  visibility: visible;
}
.genreEmoji:hover {
  transform: scale(1.15);
}
/* ======================== GLOBAL TOGGLE BUTTONS ======================== */
.expandBtn {
  background: #2b0a2f;
  border: 2px solid #82EEFD;
  color: #82EEFD;
  padding: 6px 14px;
  margin: 6px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.2s;
}
.expandBtn:hover {
  background: #82EEFD;
  color: #2b0a2f;
  box-shadow: 0 0 10px #82EEFD;
}
#showLinkedBtnTop, #showLinkedBtnBottom {
  color: #ff6b6b;
  border-color: #ff6b6b;
}
#showLinkedBtnTop:hover, #showLinkedBtnBottom:hover {
  background: #ff6b6b;
  color: #2b0a2f;
  box-shadow: 0 0 10px #ff6b6b;
}
#showSeasonsBtnTop, #showSeasonsBtnBottom {
  color: #ffd966;
  border-color: #ffd966;
}
#showSeasonsBtnTop:hover, #showSeasonsBtnBottom:hover {
  background: #ffd966;
  color: #2b0a2f;
  box-shadow: 0 0 10px #ffd966;
}
#showUniverseBtnTop, #showUniverseBtnBottom {
  color: #82EEFD;
  border-color: #82EEFD;
}
#showUniverseBtnTop:hover, #showUniverseBtnBottom:hover {
  background: #82EEFD;
  color: #2b0a2f;
  box-shadow: 0 0 10px #82EEFD;
}
.coupleBlock { margin-top: 6px; text-align: center; }

.expandSelect {
  background: #2b0a2f;
  border: 2px solid #82EEFD;
  color: #82EEFD;
  padding: 6px 14px;
  margin: 6px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  transition: 0.2s;
}
.expandSelect:hover {
  background: #82EEFD;
  color: #2b0a2f;
  box-shadow: 0 0 10px #82EEFD;
}
.expandSelect option {
  background: #2b0a2f;
  color: #82EEFD;
}
.searchInput {
  width: 280px;
  max-width: 90%;
}
.searchInput::placeholder {
  color: #82EEFD;
  opacity: 0.7;
}
.searchInput:hover {
  background: #2b0a2f;
  color: #82EEFD;
  box-shadow: 0 0 4px rgba(130,238,253,0.35);
}
.searchInput:focus {
  outline: none;
  background: #2b0a2f;
  color: #82EEFD;
  box-shadow: 0 0 4px rgba(130,238,253,0.35);
}
/* ======================== STICKY TOOLBAR ======================== */
.sticky-toolbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #1a0620;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
/* ======================== SHOW BLOCK SPACING ======================== */
.show-block { margin-bottom: 0; }
.show-block details { margin-top: 4px; margin-bottom: 20px; }
/* ======================== BASE PAGE ======================== */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to bottom, #2b0a2f 0%, #140814 60%, #050006 100%);
  color: #ffffff;
}
header {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(0,0,0,0.5);
}
h1 {
  text-align: center;
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: #ff69b4;
  text-shadow: 0 0 8px rgba(255,105,180,0.6), 0 0 20px rgba(255,105,180,0.4);
  margin-bottom: 20px;
}
nav a {
  color: #e6b3ff;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: 0.3s;
}
nav a:hover { color: #ffffff; text-shadow: 0 0 10px #d46cff; }
/* ======================== TABLE ======================== */
.container {
  max-width: 1800px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(0,0,0,0.45);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#myTable {
  width: 100%;
  border-collapse: collapse;
  letter-spacing: 1px;
  font-size: 1rem;
  padding: 12px;
  border-radius: 12px;
  overflow: visible;
}
#myTable th {
  background: linear-gradient(90deg, #3a0f3f, #2b0a2f);
  color: #ff9ad6;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 12px;
}
#myTable td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(199,125,255,0.15);
  vertical-align: top;
  height: 0;
}
.shows-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
#myTable tbody tr { transition: all 0.25s ease; }
#myTable tbody tr:hover { background: rgba(199,125,255,0.12); color: #ffffff; }
/* ======================== SEEN ICONS ======================== */
.seen-icon {
  font-size: 1.2rem;
  display: inline-block;
  transition: 0.2s ease;
}
.seen-yes::before { content: "✔"; color: #C77DFF; }
.seen-no::before { content: "✖"; color: rgba(255,255,255,0.3); }
.seen-icon:hover { transform: scale(1.2); }
/* ======================== LINKS ======================== */
a {
  color: #c77dff;
  text-decoration: none;
  transition: 0.3s;
}
a:hover { color: #ffffff; text-shadow: 0 0 6px #ff69b4; }
.page-title { text-align: center; color: #EAE6F5; }
/* ======================== DETAILS / EXPANDABLE ======================== */
details { margin-top: 6px; }
summary {
  cursor: pointer;
  font-weight: 500;
  color: #EAE6F5;
  transition: 0.2s ease;
}
summary:hover { text-shadow: 0 0 6px rgba(199,125,255,0.6); }
/* ======================== RATINGS ======================== */
.rating {
  display: inline-block;
  font-size: 1.8rem;
  letter-spacing: 2px;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
}
.unrated::before { content: ""; }
.rating::before {
  content: "★★★★★★★★★★";
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: calc(var(--rating) * 10%);
  color: hotpink;
}
/* ======================== WATCH BUTTONS ======================== */
.watch.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
  text-decoration: none;
}
/* ======================== COUNTRY SUBMENU ======================== */
.country-submenu {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 15px 10px;
  background: rgba(0,0,0,0.4);
  scrollbar-width: none;
}
.country-submenu::-webkit-scrollbar { display: none; }
.country-submenu a {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 25px;
  background: rgba(255,255,255,0.1);
  color: #e6b3ff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.country-submenu a:hover,
.country-submenu a.active {
  background: #ff69b4;
  color: white;
  box-shadow: 0 0 12px #ff69b4;
}
/* ======================== ACTOR HOVER IMAGES ======================== */
.hover_img {
  position: relative;
  display: block;
  margin-bottom: 20px;
  width: max-content;
}
.hover_img a { position: relative; text-decoration: none; }

.actor-popup {
  display: none;
  position: absolute;
  top: 0;
  left: 105%;
  transform: translateY(-10px);
  z-index: 9999;
  pointer-events: auto;
}

.hover_img:hover .actor-popup { display: block; }
.actor-popup img {
  width: 110px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.actor-link {
  color: #BFA181;
  text-decoration: none;
  position: relative;
  transition: 0.3s ease;
  display: inline-block;
  margin-bottom: 6px;
}
.actor-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: #BFA181;
  transition: 0.3s ease;
}
.actor-link:hover { text-shadow: 0 0 6px rgba(191,161,129,0.6); }
.actor-link:hover::after { width: 100%; }
/* ======================== INFO POSTER ======================== */
.info-poster {
  width: 120px;
  border-radius: 8px;
  margin: 0;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.info-flex {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
}
.info-text {
  flex: 1;
  min-width: 0;
}
/* ======================== INFO DETAIL LINES (new) ======================== */
.info-meta-line {
  margin-top: 2px;
}
.info-synopsis {
  margin-top: 8px;
  line-height: 1.5;
}
.info-aka {
  margin-top: 6px;
  font-style: italic;
  opacity: 0.75;
  font-size: 0.85rem;
}
.info-label {
  color: #ff9ad5;
  font-weight: 600;
}
/* ======================== SHIP NAME CELL ======================== */
.ship-name-cell {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  vertical-align: top;
}

/* Desktop: hide mobile menu button */
.mobile-menu-btn {
    display:none;
}


/* Mobile only */
@media screen and (max-width:768px){

    .mobile-menu-btn {
        display:block;

        position:fixed;
        right:15px;
        top:15px;

        z-index:3000;

        background:#2b0a2f;
        border:2px solid #82EEFD;
        color:#82EEFD;

        padding:8px 14px;
        border-radius:10px;

        font-size:15px;
        cursor:pointer;

        box-shadow:0 0 10px rgba(130,238,253,.5);
    }

}

.mobile-toolbar-panel.open{
    display:block;
    position:fixed;
    top:60px;
    left:0;
    right:0;
    max-height:80vh;
    overflow-y:auto;
    z-index:2999;
    margin:0;
    border-radius:0 0 12px 12px;
    background:#1a0620;
    box-shadow:0 8px 20px rgba(0,0,0,0.6);
}

.mobile-summary { display: contents; }
.mobile-summary-sub, .mobile-chevron { display: none; }

@media screen and (max-width:768px){

.mobile-toolbar-panel{
    display:none;
}

button[onclick="expandAllInfo()"],
button[onclick="collapseAllInfo()"] {
    display: none;
}

/* inside @media screen and (max-width:768px) */
.mobile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.mobile-summary-sub {
    display: block;
    font-size: 0.8rem;
    color: #ffb6c1;
    font-weight: 400;
    margin-top: 4px;
}
.mobile-chevron {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 18px;
    color: #82EEFD;
}
tr.row-open .mobile-chevron { transform: rotate(180deg); }
tr:not(.row-open) td:nth-child(2),
tr:not(.row-open) td:nth-child(3),
tr:not(.row-open) td:nth-child(4) {
    display: none;
}

/* General */
body{
    font-size:15px;
    overflow-x:hidden;
}

.container{
    margin:12px;
    padding:14px;
}

h1{
    font-size:1.8rem;
    letter-spacing:1px;
    margin-bottom:10px;
}

/* Previous / Next buttons */

.top-nav-letter{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
}

.top-nav-letter a{
    font-size:.9rem;
    padding:8px 12px;
}

/* Sticky toolbar */

.sticky-toolbar{
    position:relative;
    top:auto;
}

.sticky-toolbar .expandBtn,
.sticky-toolbar .expandSelect,
.searchInput{
    width:100%;
    max-width:none;
    margin:6px 0;
    box-sizing:border-box;
}

.expandBtn{
    padding:12px;
    font-size:15px;
}

.expandSelect{
    padding:12px;
}

/* DataTable */

.dataTables_wrapper{
    overflow-x:hidden;
}

/* Turn table into cards */

table,
thead,
tbody,
tr,
td{
    display:block;
    width:100%;
}

thead{
    display:none;
}

tr{
    margin-bottom:40px;
    background:rgba(255,255,255,.04);
    border-radius:12px;
    padding:12px;
}

#myTable td{
    border:none !important;
    padding:8px 0;
    height:auto;
}

td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:5px;
    color:#ff9ad5;
    font-weight:bold;
    font-size:.85rem;
}

/* Posters */

.info-flex{
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.info-poster{
    width:160px;
    max-width:90%;
    margin-bottom:12px;
}

.info-text{
    width:100%;
}

/* Actor images */

.hover_img{
    display:flex;
    align-items:center;
    gap:10px;
}

/* Hide actress images on mobile */
.actor-popup{
    display:none !important;
}

/* Genre icons */

.genreEmoji{
    font-size:18px;
}

/* Linked buttons */

.linkedRow,
.linkedGroupRow,
.seasonsRow,
.universeRow{
    justify-content:center;
    text-align:center;
}

/* Buttons */

.blTag,
.linkedTag,
.coupleTag,
.sideCoupleTag{
    margin:4px;
}

/* Bottom navigation */

.next-letter{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
}

.next-letter a{
    font-size:1rem;
    padding:10px 16px;
}

}