@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #fff9fc;
  --surface: #ffffff;
  --primary: #f43f83;
  --primary-dark: #d92d6e;
  --secondary: #ec4899;
  --text: #18181b;
  --text-soft: #71717a;
  --border: #f5d5e3;
  --player-bg: #09090b;

  --font-display: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 10px;

  --plyr-color-main: var(--primary);
  --plyr-video-background: var(--player-bg);
  --plyr-menu-background: #ffffff;
  --plyr-menu-color: var(--text);
  --plyr-control-icon-size: 17px;
  --plyr-control-spacing: 8px;
  --plyr-control-radius: 6px;
  --plyr-font-family: var(--font-body);
  --plyr-range-thumb-height: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden !important;
}

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.navbar {
  height: 60px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-content {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}

.brand-name {
  font-family: 'Fredoka', 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
  background: linear-gradient(135deg, #f43f83 0%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-content {
  flex: 1;
  padding-top: 22px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resolver {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resolve-form {
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px 6px 6px 12px;
  align-items: center;
}

.input-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-icon {
  width: 16px;
  height: 16px;
  color: var(--text-soft);
  flex-shrink: 0;
}

#url-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--text);
}

#url-input::placeholder {
  color: #b8b3ba;
}

.clear-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clear-btn:hover {
  background: #fde8f1;
  color: var(--primary-dark);
}

.resolve-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 131, 0.12);
}

.btn-resolve {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-resolve:hover {
  background: var(--primary-dark);
}

.btn-resolve:active {
  transform: scale(0.97);
}

.btn-resolve:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-resolve .icon {
  width: 15px;
  height: 15px;
}

.btn-resolve--sm {
  padding: 8px 12px;
  font-size: 12.5px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
}

.btn-text:hover {
  color: var(--text);
}

.inline-error {
  font-size: 12.5px;
  color: #d1235a;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.retry-link {
  background: none;
  border: none;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

.top-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f43f83 0%, #e11d48 50%, #fb7185 100%);
  box-shadow: 0 0 10px rgba(244, 63, 131, 0.8), 0 0 5px rgba(244, 63, 131, 0.6);
  transition: width 0.2s ease, opacity 0.3s ease;
}

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

.empty-state {
  font-size: 12.5px;
  color: var(--text-soft);
  padding: 2px 2px 0;
}

.player-section {
  max-width: 1180px;
  width: 100%;
  margin: 4px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dplayer-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--player-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(24, 24, 27, 0.12);
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  display: block;
}

.touch-zone {
  position: absolute;
  top: 0;
  bottom: 50px;
  width: 35%;
  z-index: 3;
}
.touch-zone.left { left: 0; }
.touch-zone.right { right: 0; }

.subtitle-overlay {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  transition: bottom 0.2s ease;
  z-index: 5;
}

.player-container.controls-shown .subtitle-overlay {
  bottom: 58px;
}

.subtitle-overlay span {
  background: rgba(10, 8, 12, 0.8);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  padding: 4px 10px;
  border-radius: 6px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.center-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 12, 0.25);
  cursor: pointer;
  transition: opacity 0.2s ease;
  z-index: 4;
}

.big-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.big-play-btn:hover {
  transform: scale(1.08);
  background: var(--primary-dark);
}

.big-play-btn .icon-play {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.buffering-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
}

.buffering-spinner .ring {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.95), rgba(9, 9, 11, 0.55) 65%, transparent);
  padding: 8px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 7;
}

.player-container:not(.controls-shown) .player-controls {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.player-container:not(.controls-shown) {
  cursor: none;
}

.seek-bar {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  accent-color: var(--primary);
}

.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #ffffff;
  cursor: pointer;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #ffffff;
}

.left-controls,
.right-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--primary);
}

.icon-btn .icon {
  width: 16px;
  height: 16px;
}

.skip-btn {
  position: relative;
}

.skip-btn .skip-label {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 7.5px;
  font-weight: 700;
  pointer-events: none;
}

.volume-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.volume-bar {
  width: 0;
  overflow: hidden;
  height: 4px;
  accent-color: var(--primary);
  transition: width 0.18s ease;
}

.volume-group:hover .volume-bar,
.volume-group:focus-within .volume-bar {
  width: 56px;
}

.time-display {
  font-size: 11px;
  font-weight: 600;
  color: #e4e4e7;
  white-space: nowrap;
  padding: 0 4px;
}

.subtitle-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
}

.sub-track-wrapper {
  flex: 1;
  min-width: 0;
}

.sub-pill-btn {
  width: 100%;
  justify-content: space-between;
}

.sub-pill-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dropdown-wrapper {
  position: relative;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 7.5px 11px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(244, 63, 131, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pill-btn:hover,
.pill-btn:active {
  background: #fdf0f6;
  color: var(--primary-dark);
  border-color: var(--primary);
}

.sub-icon {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

.arrow-icon {
  width: 11px;
  height: 11px;
  margin-left: 1px;
  flex-shrink: 0;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(24, 24, 27, 0.15);
  display: flex;
  flex-direction: column;
  padding: 5px;
  min-width: 170px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
}

.sub-track-wrapper .dropdown-menu {
  left: 0;
  right: auto;
  min-width: 180px;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:active,
.dropdown-item.selected {
  background: #fdf0f6;
  color: var(--primary-dark);
}

.check-icon {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.modal-select {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.modal-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 131, 0.12);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--r-md);
  width: 100%;
  max-width: 340px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(24, 24, 27, 0.16);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 17px;
  color: var(--text-soft);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.close-btn:hover {
  background: #fdf0f6;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.label {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
  color: var(--text-soft);
}

.full-width {
  width: 100%;
}

.text-input {
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  outline: none;
  color: var(--text);
}

.text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 131, 0.1);
}

.file-input {
  width: 100%;
  padding: 8px;
  font-size: 11.5px;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}

.dropdown-wrapper {
  position: relative;
}

.arrow-icon {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.12);
  display: flex;
  flex-direction: column;
  padding: 4px;
  min-width: 170px;
  z-index: 40;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: #fdf0f6;
  color: var(--primary-dark);
}

.dropdown-item .icon {
  width: 14px;
  height: 14px;
}

.modal-tabs {
  display: flex;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 12px;
}

.tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

.textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
  line-height: 1.4;
}

.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(244, 63, 131, 0.14);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fdf0f6;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.anime-details-card {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  margin-top: 12px;
}

.anime-poster-img {
  width: 90px;
  height: 130px;
  object-fit: cover;
  border-radius: var(--r-sm);
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.12);
  flex-shrink: 0;
}

.anime-details-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.details-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.brand-name {
  font-family: 'Fredoka', 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #f43f83 0%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-link-btn:hover {
  background: #fdf0f6;
  color: var(--primary-dark);
  border-color: var(--border);
}

.nav-link-btn .icon {
  width: 15px;
  height: 15px;
}

.btn-anikoto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f43f83 0%, #e11d48 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6.5px 13px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(244, 63, 131, 0.22);
  transition: all 0.15s ease;
}

.btn-anikoto:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(244, 63, 131, 0.35);
}

.external-icon {
  width: 13px;
  height: 13px;
}

.details-desc {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episodes-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}

.search-results-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.search-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(244, 63, 131, 0.15);
}

.search-card-poster {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.search-card-poster-placeholder {
  width: 100%;
  height: 200px;
  background: var(--border);
}

.search-card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.search-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-card-meta {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
}

.search-card-btn {
  margin-top: auto;
  background: #fdf0f6;
  color: var(--primary-dark);
  border: none;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-card:hover .search-card-btn {
  background: var(--primary);
  color: #ffffff;
}

.player-section {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.player-container-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.episodes-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

@media (min-width: 992px) {
  .container {
    max-width: 1200px;
  }

  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}

.ep-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ep-btn:hover {
  background: #fdf0f6;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.ep-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(244, 63, 131, 0.25);
}

@media (max-width: 640px) {
  .navbar {
    height: 56px;
  }

  .header-content {
    height: 56px;
  }

  .logo {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 17px;
  }

  .header-actions {
    gap: 6px;
  }

  .nav-btn-label {
    display: none;
  }

  .nav-link-btn {
    padding: 6px;
  }

  .btn-anikoto {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .resolve-form {
    padding: 5px 5px 5px 10px;
  }

  .btn-resolve span:not(.icon) {
    display: inline;
  }

  .sub-select {
    max-width: 140px;
  }

  .subtitle-toolbar {
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .subtitle-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.footer {
  margin-top: 30px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 0 18px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.footer-brand-name {
  font-family: 'Fredoka', 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.footer-copy {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0;
}

.footer-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 10.5px;
  color: #a1a1aa;
  max-width: 650px;
  line-height: 1.4;
  margin: 0;
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-wrapper .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon.play-sm {
  width: 10px;
  height: 10px;
}

.icon.ext-sm {
  width: 12px;
  height: 12px;
}

.toast-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.modal-content--center {
  max-width: 400px;
  text-align: center;
}

.modal-body--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
}

.qr-container {
  background: #ffffff;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.qr-image {
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #f43f83 0%, #e11d48 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.step-info p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.45;
}

.step-info code {
  background: #fdf0f6;
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.download-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .download-options-grid {
    grid-template-columns: 1fr;
  }
}

.download-option-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-card-header svg,
.option-card-header .icon,
.download-option-card svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
}

.option-card-header h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
}

.option-card-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.4;
}

.margin-v-sm {
  margin: 4px 0;
}

.margin-bottom-sm {
  margin-bottom: 8px;
}

.ai-links-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-links-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ai-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fdf0f6;
  color: var(--primary-dark);
  border: 1px solid rgba(244, 63, 131, 0.25);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ai-link-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}