.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.media-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.media-card:hover { border-color: var(--purple-core); transform: scale(1.02); }
.media-thumb {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #0d0520, #260a50);
  position: relative;
}
.media-play {
  position: absolute;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(124,58,237,0.5); border: 1px solid var(--purple-glow);
  display: flex; align-items: center; justify-content: center;
}
.media-info { padding: 0.85rem 1rem; }
.media-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-primary); margin-bottom: 0.2rem;
}
.media-meta { font-size: 0.72rem; color: var(--text-muted); }

.header-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.game-select-container {
  position: relative;
  width: 280px;
  margin-bottom: 0;
  z-index: 50;
  flex-shrink: 0;
}

.game-select-trigger {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.game-select-trigger:hover,
.game-select-trigger.open {
  border-color: var(--purple-core);
  box-shadow: var(--glow-sm);
}

.game-select-current {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.game-select-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-bright);
}

.game-select-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-select-arrow {
  font-size: 0.7rem;
  color: var(--purple-glow);
  transition: transform 0.2s;
}

.game-select-trigger.open .game-select-arrow {
  transform: rotate(180deg);
}

.game-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.game-select-dropdown.open {
  display: block;
}

.game-select-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(124,58,237,0.1);
  transition: background 0.2s;
  position: relative;
}

.game-select-option:last-child {
  border-bottom: none;
}

.game-select-option:hover:not(.disabled) {
  background: rgba(124, 58, 237, 0.2);
}

.game-select-option.active {
  background: rgba(124, 58, 237, 0.15);
}

.game-select-info {
  display: flex;
  flex-direction: column;
}

.game-title-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.game-status-text {
  font-size: 0.7rem;
  color: var(--purple-glow);
}

.game-select-option.disabled {
  filter: grayscale(1);
  opacity: 0.45;
  cursor: not-allowed;
}

.game-select-option.disabled::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 1rem;
  background: rgba(5, 3, 14, 0.95);
  border: 1px solid var(--border-bright);
  color: var(--accent-violet);
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.game-select-option.disabled:hover::after {
  opacity: 1;
}

.section-divider {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.section-title {
  padding-top: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-card-wide {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.game-card-wide:hover {
  transform: translateY(-3px);
  border-color: var(--purple-core);
  box-shadow: var(--glow-md);
}

.game-card-wide .game-card-img {
  width: 40%;
  min-height: 180px;
  object-fit: cover;
}

.game-card-content {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.game-card-status {
  align-self: flex-start;
  font-size: 0.75rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.game-card-status.active {
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-glow);
  border: 1px solid rgba(124, 58, 237, 0.4);
}

.game-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.game-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.game-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.game-card-upcoming {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.game-card-upcoming .game-card-img {
  width: 35%;
  min-height: 140px;
  object-fit: cover;
}

.game-card-upcoming.disabled {
  opacity: 0.55;
  filter: grayscale(0.8);
}

.media-upload-card.clickable {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-upload-card.clickable:hover {
  transform: translateY(-3px);
  border-color: var(--purple-core);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.media-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
  box-sizing: border-box;
}

.media-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.media-modal-container {
  background: #0f0d15;
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 90%;
  max-width: 960px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.media-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.media-modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

.media-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
  overflow-y: auto;
  max-height: calc(85vh - 100px);
  padding-right: 6px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.modal-item-box {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.modal-item-box:hover {
  border-color: var(--purple-core);
  transform: translateY(-2px);
}

.modal-item-img {
  width: 140px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 1rem;
  margin-bottom: 0 !important;
  flex-shrink: 0;
}

.modal-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  text-align: left !important;
}

.modal-item-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.modal-item-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

.titlecolor {
  background: linear-gradient(135deg, var(--purple-bright, #c084fc), var(--purple-glow, #a855f7), #d946ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.guide-auth-section { margin: 0; }
.guide-auth-box {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  height: 52px;
  box-sizing: border-box;
}
.guide-auth-box::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--purple-core); border-radius: 4px 0 0 4px;
}
.guide-auth-icon {
  width: 32px; height: 32px; min-width: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.18); border-radius: 4px;
}
.guide-auth-icon img { width: 18px; height: 18px; opacity: 0.9; }
.guide-auth-content { flex: 1; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
.guide-auth-text { display: flex; flex-direction: column; }
.guide-auth-label { margin-bottom: 0; font-family: "Orbitron", sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; opacity: 0.55; }
.guide-auth-content h2 { margin: 0; font-family: "Rajdhani", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.5px; line-height: 1; color: #fff; }
.guide-auth-content p { display: none; }

.discord-login-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 13px;
  border: none; border-radius: 4px; background: #5865f2; color: #ffffff; font-family: "Rajdhani", sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  background: black;
  border: 1px solid var(--purple-core);
}
.discord-login-button img { width: 15px; height: 15px; }
.discord-login-button:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(88, 101, 242, 0.25); }
.discord-login-button:active { transform: translateY(0); }

.discord-logout-button {
  padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 4px; background: transparent;
  color: inherit; font-family: "Rajdhani", sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.discord-logout-button:hover { background: rgba(255, 255, 255, 0.05); }

.class-selection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.class-select-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative;
  transition: all 0.25s ease-in-out; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.class-select-box:hover {
  transform: translateY(-3px); border-color: var(--border); background: var(--bg-card);
  box-shadow: 0 6px 20px rgba(255, 51, 68, 0.25);
}
.class-title {
  font-family: 'Orbitron', sans-serif; font-size: 0.85rem; font-weight: 700; color: #f1f5f9;
  margin-bottom: 12px; text-align: center; text-transform: uppercase; letter-spacing: 1px;
}
.class-img-wrapper {
  width: 100%; height: 96px; display: flex; justify-content: center; align-items: center;
  overflow: hidden; border-radius: 6px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); padding: 8px;
}
.class-img { width: auto; height: auto; max-width: 96px; max-height: 96px; object-fit: contain; transition: transform 0.3s ease; }
.class-select-box:hover .class-img { transform: scale(1.08); }

.standard-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.media-modal-text-reader {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 10px;
  text-align: left;
  color: #cfc7d8;
  font-family: 'Inter', sans-serif;
}

.back-to-grid-btn {
  align-self: flex-start;
  background: rgba(174, 93, 255, 0.15);
  border: 1px solid rgba(174, 93, 255, 0.4);
  color: #ae5dff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-to-grid-btn:hover {
  background: #ae5dff;
  color: #ffffff;
}

.iframe-container {
  width: 100%;
  height: 70vh;
  min-height: 450px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f0d15;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Google Doc reader: the iframe is the only thing that scrolls, and it uses the full width of the modal */
.media-modal-text-reader.doc-reader {
  height: 70vh;
  height: 70dvh;
  max-height: none;
  padding-right: 0;
  overflow: hidden;
  gap: 12px;
}
.doc-reader .iframe-container {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.doc-reader .iframe-container iframe { width: 100%; height: 100%; }
.doc-reader-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.doc-reader-actions a { text-decoration: none; }

@media (max-width: 768px) {
  .media-modal-container { width: 96%; padding: 1rem; }
  .media-modal-title { font-size: 1.1rem; margin-bottom: 0.75rem; padding-right: 2rem; }
  .media-modal-text-reader.doc-reader { height: calc(100dvh - 190px); min-height: 320px; }
  .doc-reader .iframe-container { border-radius: 6px; }
}

.guide-content-body h2 {
  font-family: 'Orbitron', sans-serif;
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(174, 93, 255, 0.2);
  padding-bottom: 8px;
}

.guide-content-body h3 {
  font-family: 'Rajdhani', sans-serif;
  color: #ae5dff;
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.guide-content-body p {
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.guide-content-body ul, .guide-content-body ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.guide-content-body li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.guide-content-body strong {
  color: #ffffff;
}

.tag-badge {
  font-size: 0.65rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}

.tag-badge.tag-public {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tag-badge.tag-private {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
  .game-card-wide,
  .game-grid-2col {
    grid-template-columns: 1fr;
  }

  .game-card-wide,
  .game-card-upcoming {
    flex-direction: column;
  }

  .game-card-wide .game-card-img,
  .game-card-upcoming .game-card-img {
    width: 100%;
    height: 160px;
  }

  .header-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .game-select-container {
    width: 100%;
  }

  .guide-auth-box {
    height: auto;
    min-height: 52px;
    padding: 10px 12px;
    gap: 10px;
  }

  .guide-auth-content {
    gap: 0.5rem;
  }

  .guide-auth-content h2 {
    font-size: 13px;
  }

  .discord-login-button,
  .discord-logout-button {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .media-modal-overlay {
    padding: 12px;
  }

  .media-modal-container {
    width: 95%;
    max-height: 90vh;
    padding: 1.25rem 1rem;
  }

  .media-modal-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
  }

  .media-modal-grid {
    grid-template-columns: 1fr;
    max-height: calc(90vh - 80px);
    gap: 0.85rem;
  }

  .class-selection-grid {
    grid-template-columns: repeat(2, 1fr);
    max-height: calc(90vh - 80px);
    overflow-y: auto;
  }

  .media-modal-text-reader {
    max-height: calc(90vh - 80px);
  }

  .modal-item-img {
    width: 100px;
    height: 60px;
    margin-right: 0.75rem;
  }

  .modal-item-title {
    font-size: 0.92rem;
  }

  .modal-item-desc {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .guide-auth-box {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .guide-auth-icon {
    display: none;
  }

  .guide-auth-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }

  .discord-login-button,
  .discord-logout-button {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
  }

  .class-selection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .class-select-box {
    padding: 10px 6px;
  }

  .class-title {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .class-img-wrapper {
    height: 70px;
  }

  .class-img {
    max-width: 70px;
    max-height: 70px;
  }

  .modal-item-box {
    padding: 0.6rem;
  }

  .modal-item-img {
    width: 80px;
    height: 50px;
    margin-right: 0.6rem;
  }
}

.search-bar-container {
  position: relative;
  flex: 1;
  min-width: 220px;
}

#globalSearchInput {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#globalSearchInput::placeholder {
  color: #a09cb0;
  opacity: 1;
}

#globalSearchInput::-webkit-input-placeholder {
  color: #a09cb0;
  opacity: 1;
}

#globalSearchInput::-moz-placeholder {
  color: #a09cb0;
  opacity: 1;
}

#globalSearchInput:-ms-input-placeholder {
  color: #a09cb0;
  opacity: 1;
}

#globalSearchInput:focus {
  border-color: var(--purple-core);
  box-shadow: var(--glow-sm);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0f0d15;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 350px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-item {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(124,58,237,0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  text-decoration: none;
}

.search-result-item:hover {
  background: rgba(124, 58, 237, 0.15);
}

.search-result-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.search-result-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.media-search-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
}

.media-search-section .search-bar-container {
  width: 100%;
  max-width: 600px;
  position: relative;
}

.tag-type {
  font-size: 0.65rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}

.tag-type.tag-yt {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.tag-type.tag-doc {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.tag-type.tag-article {
  background: rgba(174, 93, 255, 0.15);
  color: #ae5dff;
  border: 1px solid rgba(174, 93, 255, 0.4);
}

.tag-type.tag-img {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.img-viewer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.img-viewer {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f0d15;
  overflow-x: auto;
}
.img-viewer-img { display: block; width: 100%; height: auto; margin: 0 auto; cursor: zoom-in; }
.img-viewer.zoomed .img-viewer-img { width: auto; max-width: none; cursor: zoom-out; }
.img-viewer-status { padding: 2rem 1rem; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

.boss-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex; justify-content: center; align-items: center;
  overflow: hidden; border-radius: 6px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); padding: 6px;
  box-sizing: border-box;
}
.boss-img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.boss-select-box:hover .boss-img { transform: scale(1.06); }
.boss-count {
  margin-top: 10px; font-family: 'Rajdhani', sans-serif; font-size: 0.8rem;
  font-weight: 600; color: var(--text-secondary); letter-spacing: 0.04em;
}

/* ---- Starter Guide: pinned strip, search, chips, compact rows ---- */
.media-modal-grid.starter-view { display: block; }
.starter-pinned-box {
  border: 1px solid var(--purple-core); border-radius: 10px; padding: 12px;
  background: rgba(124, 58, 237, 0.08); margin-bottom: 16px;
}
.starter-pinned-title {
  font-family: 'Orbitron', sans-serif; font-size: 0.8rem; letter-spacing: 0.08em;
  color: var(--purple-glow); margin-bottom: 10px;
}
.starter-search {
  width: 100%; box-sizing: border-box; padding: 10px 14px; margin-bottom: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 0.9rem; outline: none;
}
.starter-search:focus { border-color: var(--purple-core); }
.starter-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.starter-chip {
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; font-weight: 600; transition: all 0.2s ease;
}
.starter-chip:hover { border-color: var(--purple-core); color: var(--text-primary); }
.starter-chip.active { background: var(--purple-core); border-color: var(--purple-core); color: #fff; }
.starter-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.starter-row {
  display: flex; gap: 12px; align-items: center; padding: 8px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  text-decoration: none; cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease;
}
.starter-row:hover { border-color: var(--purple-core); transform: translateX(2px); }
.starter-pinned-box .starter-row { margin-bottom: 8px; }
.starter-pinned-box .starter-row:last-child { margin-bottom: 0; }
.starter-row-thumb { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #0f0d15; }
.starter-row-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.starter-row-title { color: var(--text-primary); font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.starter-row-desc {
  color: var(--text-secondary); font-size: 0.78rem;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.starter-row-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.starter-topic {
  font-size: 0.68rem; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--border-bright); color: var(--purple-glow);
}
.starter-more-btn {
  width: 100%; margin-top: 12px; padding: 10px; cursor: pointer; border-radius: 8px;
  background: transparent; border: 1px dashed var(--border-bright); color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.9rem;
}
.starter-more-btn:hover { border-color: var(--purple-core); color: var(--text-primary); }
.starter-empty { text-align: center; padding: 2rem 1rem; color: var(--text-secondary); font-size: 0.9rem; }
@media (max-width: 600px) {
  .starter-row-thumb { width: 72px; height: 42px; }
}