/* ═════════════════════════════════════════════════════════════════
   💜 Zeit Vertreiber
   Modernes, dunkles Design (TikTok/Shorts-inspiriert)
   ═════════════════════════════════════════════════════════════════ */

/* ─── CSS-Variablen ─── */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #161616;
  --bg-card: #1e1e1e;
  --bg-hover: #2a2a2a;
  --text-primary: #f5f5f5;
  --text-secondary: #999;
  --text-muted: #666;
  --accent: #a855f7;
  --accent-hover: #9333ea;
  --accent-glow: rgba(168, 85, 247, 0.3);
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --border: #2a2a2a;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;
  --nav-height: 64px;
  --header-height: 56px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: all 0.2s ease;
}

/* ─── Reset & Basis ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + 16px);
  line-height: 1.5;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Splash Screen ─── */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
#splash-screen.hidden {
  opacity: 0;
  pointer-events: none;
}
.splash-content {
  text-align: center;
}
.splash-logo {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}
.splash-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.splash-subtitle {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 1.1rem;
}
.splash-loader {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.splash-loader span {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ─── Bottom Navigation ─── */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding: 0 8px;
}
.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  min-width: 54px;
}
.nav-btn .nav-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.nav-btn .nav-label {
  font-size: 0.65rem;
  font-weight: 500;
}
.nav-btn:hover {
  color: var(--text-secondary);
}
.nav-btn.active {
  color: var(--accent);
}
.nav-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}
.nav-btn.upload-btn .nav-icon {
  background: linear-gradient(135deg, var(--accent), #ec4899);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: white;
  font-size: 1.5rem;
  margin-top: -16px;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.nav-btn.upload-btn.active .nav-icon {
  box-shadow: 0 4px 24px var(--accent-glow);
}

/* ─── Views ─── */
.view {
  display: none;
  min-height: calc(100vh - var(--nav-height));
  animation: fadeIn 0.3s ease;
}
.view.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  min-height: var(--header-height);
}
.view-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-actions {
  display: flex;
  gap: 8px;
}
.icon-btn {
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}
.icon-btn:hover {
  background: var(--bg-hover);
}

/* ─── Buttons ─── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ec4899);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-large {
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--bg-hover);
}

/* ─── Shorts Feed ─── */
#shorts-container {
  height: calc(100vh - var(--nav-height) - var(--header-height));
  overflow: hidden;
  position: relative;
}
.shorts-feed {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}
.shorts-feed::-webkit-scrollbar { display: none; }

.short-item {
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.short-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}
.short-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 16px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.short-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.short-creator {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.short-actions {
  position: absolute;
  right: 12px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.short-action-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: var(--transition);
}
.short-action-btn span {
  font-size: 0.7rem;
  font-weight: 600;
}
.short-action-btn:hover {
  transform: scale(1.1);
}
.short-action-btn.liked {
  color: var(--danger);
}

/* ─── Empty State ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 2rem;
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-state h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ─── Explore Grid ─── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  padding: 8px;
}
.explore-card {
  position: relative;
  aspect-ratio: 9/16;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.explore-card:hover {
  transform: scale(1.02);
}
.explore-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.explore-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 8px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.explore-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.explore-card-creator {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* ─── Upload ─── */
.upload-container {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.05);
}
.dropzone-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}
.dropzone-content h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.dropzone-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.dropzone-hint {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-top: 8px;
}
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.upload-preview video {
  width: 100%;
  max-height: 300px;
  border-radius: var(--radius);
  background: #000;
}
.upload-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.upload-details input,
.upload-details textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}
.upload-details input:focus,
.upload-details textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.upload-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.upload-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ec4899);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}
#progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}
.upload-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ─── Skyper / Chat ─── */
.chat-setup,
.chat-waiting,
.chat-ended-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  min-height: calc(100vh - var(--nav-height) - var(--header-height) - 100px);
}
.chat-avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.chat-setup h3,
.chat-waiting h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.chat-setup p,
.chat-waiting p {
  color: var(--text-secondary);
  max-width: 300px;
  margin-bottom: 1.5rem;
}
.chat-name-input {
  width: 100%;
  max-width: 280px;
  margin-bottom: 1rem;
}
.chat-name-input input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  text-align: center;
}
.chat-name-input input:focus {
  outline: none;
  border-color: var(--accent);
}
.chat-hint {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-top: 12px;
}

.waiting-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}

.chat-session {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height) - var(--header-height));
}
.video-container {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
}
.video-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}
.video-wrapper.mini {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 120px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--accent);
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.75rem;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 2px 8px;
  border-radius: 4px;
}
.chat-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ctrl-btn:hover {
  background: var(--bg-hover);
}
.ctrl-btn.ctrl-end {
  background: var(--danger);
  color: white;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}
.ctrl-btn.ctrl-end:hover {
  background: #dc2626;
}
.ctrl-btn.off {
  background: var(--bg-hover);
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Text-Chat */
.text-chat {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 320px;
  background: rgba(10, 10, 10, 0.95);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.text-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg {
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: var(--radius);
  max-width: 85%;
}
.chat-msg.own {
  align-self: flex-end;
  background: var(--accent);
}
.chat-msg .msg-user {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
}
.chat-msg .msg-text {
  font-size: 0.9rem;
  margin-top: 2px;
}
.chat-msg .msg-time {
  font-size: 0.65rem;
  opacity: 0.5;
  margin-top: 4px;
}
.text-chat-input {
  display: flex;
  padding: 8px;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.text-chat-input input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.text-chat-input input:focus {
  outline: none;
  border-color: var(--accent);
}
.text-chat-input button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

/* ─── Profil ─── */
.profile-container {
  padding: 24px 16px;
  max-width: 600px;
  margin: 0 auto;
}
.profile-header {
  text-align: center;
  margin-bottom: 24px;
}
.profile-avatar {
  font-size: 4rem;
  margin-bottom: 8px;
}
.profile-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}
.profile-role {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}
.stat {
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.profile-bio {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.profile-bio h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.profile-bio p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}
.profile-my-videos h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}
#profile-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

/* ─── Modal ─── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}
.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-content video {
  width: 100%;
  max-height: 60vh;
  background: #000;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-video-info {
  padding: 16px;
}
.modal-video-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.modal-video-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.modal-actions {
  margin: 12px 0;
}
.modal-actions button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}
.modal-actions button:hover {
  background: var(--bg-hover);
}
.modal-comments {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.modal-comments h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}
#modal-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 200px;
  overflow-y: auto;
}
.comment-item {
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: var(--radius);
}
.comment-item .comment-user {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}
.comment-item .comment-text {
  font-size: 0.85rem;
  margin-top: 2px;
}
.comment-input {
  display: flex;
  gap: 8px;
}
.comment-input input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.comment-input input:focus {
  outline: none;
  border-color: var(--accent);
}
.comment-input button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

/* ─── Toast ─── */
#toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 360px;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.info { border-color: var(--accent); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── Badge ─── */
.badge {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ─── Credits Tags ─── */
.profile-credits {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.profile-credits h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.credit-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.credit-tag:last-child {
  margin-bottom: 0;
}
.credit-badge {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.credit-badge.idea {
  background: rgba(168, 85, 247, 0.15);
}
.credit-badge.dev {
  background: rgba(34, 197, 94, 0.15);
}
.credit-name {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 80px;
}
.credit-role {
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex: 1;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
  }
  .video-wrapper.mini {
    width: 90px;
    height: 120px;
  }
  .text-chat {
    width: 100%;
  }
  .splash-title {
    font-size: 1.8rem;
  }
}

/* ─── Auth Modal ─── */
.auth-modal-content {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 90%;
  padding: 32px 24px;
  z-index: 1;
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.auth-tab.active {
  background: var(--accent);
  color: white;
}
.auth-field {
  margin-bottom: 12px;
}
.auth-field input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
}
.auth-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 12px;
  min-height: 1.2em;
}
.auth-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 12px;
  text-align: center;
}
.btn-full {
  width: 100%;
}

@media (min-width: 768px) {
  .shorts-feed {
    max-width: 400px;
    margin: 0 auto;
  }
}
