:root {
    --page-bg: #F7E5D7;
    --text: #1f2933;
}

* {
  box-sizing: border-box;
}

/* Global page styling for this details view */
html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--page-bg);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* Generic container used on this page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================= */
/* Header and navigation     */
/* ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 24px;
  background-color: var(--page-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Logo on the right */
.logo {
  height: 56px;
  width: auto;
  display: block;
}

/* Desktop nav container */
.navigation {
  margin-left: 0;
  flex: 0 0 auto;
}

/* Desktop nav list */
.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

.navigation ul li {
  margin: 0;
  padding: 0;
}

/* Desktop nav links */
.navigation ul li a {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: #333;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Active link */
.navigation ul li a.active {
  background-color: #3E0076;
  color: #ffffff;
}

/* Hover state */
.navigation ul li a:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: #111;
}

/* Logo on the right */
.logo {
    height: 56px;
    width: auto;
    display: block;
}

.menu-button {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Mobile header layout */
@media (max-width: 768px) {
  .site-header {
    justify-content: center;
    padding: 10px 16px;
  }

  .logo {
    height: 48px;
  }

  .menu-button {
    display: block;
    position: absolute;
    left: 12px;
    top: 12px;
  }

  .navigation {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    background-color: var(--page-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
  }

  .navigation.open {
    display: block;
  }

  .navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 4px 12px;
  }

  .navigation ul li a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border-radius: 8px;
  }
}

/* ========================= */
/* Comedian details layout   */
/* ========================= */

/* Main details card */
#comedian-details {
    max-width: 800px;
    margin: 90px auto 60px;
    padding: 30px;
    background-color: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Wrapper for back button and top card */
.back-and-details {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card that holds comedian photo and name */
.comedian-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* In case .card is used */
.card {
    background-color: #FFFFFF;
    border-radius: 15px;
}

/* Comedian photo inside the card */
#comedian-details img,
.comedian-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#comedian-name {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.comedian-details-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Social links under name */
.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    text-align: center;
}

.social-links a {
    color: #B5A79E;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #a29082;
}

/* Section titles for specials and albums */
.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #B5A79E;
    margin-bottom: 20px;
    text-align: center;
}

/* Also keep generic h2 styling consistent */
h2 {
    font-size: 24px;
    font-weight: bold;
    color: #B5A79E;
    margin-bottom: 20px;
}

/* Generic scrolling list container used for specials and albums */
.scrolling-list {
    width: 100%;
    text-align: center;
    padding: 20px 0;
}

/* ========================= */
/* Specials list             */
/* ========================= */

#comedian-specials {
    display: block;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding: 20px;
}

#comedian-specials .special {
    display: inline-block;
    vertical-align: top;
    width: 150px;
    height: 275px;
    padding: 10px;
    background-color: #FFF;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1),
                0px 1px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin: 0 10px 25px;
}

#comedian-specials .special img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

#comedian-specials .special:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15),
                0px 6px 18px rgba(0, 0, 0, 0.1);
}

.special-title {
    font-weight: bold;
    margin: 5px 0;
    height: calc(1.2em * 3);
    line-height: 1.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.special-year {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    line-height: 1.2em;
}

/* Platform logos under specials */
.platform-logo-container {
    width: 60%;
    height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px auto;
    overflow: hidden;
    padding: 15px 0;
    background: transparent;
    box-shadow: none !important;
}

.platform-logo {
    width: auto;
    height: 16px;
    max-width: 80%;
    object-fit: contain !important;
    object-position: center;
    display: block;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ========================= */
/* Album tiles               */
/* ========================= */

#comedian-albums {
    display: block;
    text-align: center;
    padding: 10px 0 20px 0;
}

.album-tile {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 180px;
    margin: 8px;
    padding: 10px 5px 60px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
    text-align: center;
    height: auto;
    align-items: center;
}

/* Square album artwork */
.album-artwork {
    width: 90%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 10px;
}

/* Ensure overrides for any inherited round style */
#comedian-albums .album-artwork {
    width: 90%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 10px;
}

/* Hide time label for albums */
.album-time {
    display: none;
}

/* Date just under image */
.album-date {
    position: static;
    margin: 4px 0;
    font-size: 0.85em;
    color: #666;
    width: auto;
    text-align: center;
}

/* Album title */
.album-title {
    position: static;
    margin: 4px 0 10px;
    font-weight: bold;
    font-size: 0.95em;
    line-height: 1.2em;
    max-height: calc(1.2em * 2);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Icon row at bottom */
.album-icons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    overflow: visible;
    width: auto !important;
    padding: 0 !important;
    box-sizing: content-box;
}

.album-icons a {
    display: inline-block;
    flex: none !important;
    width: auto;
}

.album-icon {
    width: 70px !important;
    height: 40px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    display: block;
}

/* Alternate platforms button */
.album-alt {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 35px;
    padding: 0;
    box-sizing: border-box;
}

.alt-logo-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.85em;
    border: 1px solid #ccc;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.alt-logo-button:hover:not(:disabled) {
    background: #e0e0e0;
}

.alt-logo-button:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ========================= */
/* Back button               */
/* ========================= */

.details-back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 15px;
    font-size: clamp(12px, 2vw, 16px);
    font-weight: bold;
    background-color: #FFF;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: 1px solid #ddd;
    z-index: 10;
    line-height: 1;
}

/* Optional hover matching other buttons */
.details-back-button:hover {
    background-color: #f0f0f0;
}