:root {
  --bg-dark: #0b0e14;
  --bg-card: #151a24;
  --bg-card-hover: #1c2331;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #ff4500;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #ff4500; /* Reddit orange */
  --accent-hover: #ff5714;
  --accent-glow: rgba(255, 69, 0, 0.25);
  --success: #10b981;
  --danger: #ef4444;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Cascadia Mono', 'Segoe UI Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  padding: 24px 16px 40px;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.app-header,
.info-grid,
.shortcuts-card {
  width: 100%;
  max-width: 1104px; /* Increased 15% from 960px */
}

/* Header & URL Input Section */
.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1104px;
  margin: 0 auto;
  padding: 0;
}

/* Input Card (Centered URL box) */
.input-card {
  width: 100%;
  max-width: 1104px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
}

.logo-icon {
  align-self: stretch;
  aspect-ratio: 1 / 1;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 4px 14px rgba(255, 69, 0, 0.45));
  transition: transform 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.logo-icon:hover {
  transform: scale(1.04) rotate(-2deg);
  filter: drop-shadow(0 6px 20px rgba(255, 69, 0, 0.65));
}

.logo-icon img,
.logo-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.input-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.url-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  height: 48px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 40px 0 42px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(0, 0, 0, 0.5);
}

.clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  line-height: 1;
}

.clear-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 20px;
  height: 46px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

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

.primary-btn:active {
  transform: scale(0.98);
}

.primary-btn.loading {
  opacity: 0.85;
  cursor: wait;
}

/* Inline Error Message for URL Input */
.url-error-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  line-height: 1.4;
  animation: fadeInDown 0.2s ease;
  width: 100%;
}

.url-error-msg.hidden {
  display: none;
}

.url-error-msg .error-icon {
  flex-shrink: 0;
  color: #ef4444;
}

.input-wrapper.has-error input {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* Download Section Inline Notice */
.download-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-top: 10px;
  animation: fadeInDown 0.2s ease;
}

.download-notice.hidden {
  display: none;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Samples */
.samples-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  width: 100%;
}

.samples-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.samples-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sample-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sample-chip:hover {
  background: rgba(255, 69, 0, 0.15);
  border-color: rgba(255, 69, 0, 0.35);
  color: #fff;
}

/* Video Player Wrapper */
.player-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.player-container {
  position: relative;
  width: var(--player-width, 1104px); /* Increased by 15% from 960px */
  max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 85vh;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: box-shadow 0.2s ease;
}

.player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.player-container audio {
  display: none;
}

/* Unmute Overlay Banner */
.unmute-overlay {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: auto;
  animation: fadeInDown 0.3s ease;
}

.unmute-banner {
  background: rgba(255, 69, 0, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
  transition: transform 0.2s ease, background 0.2s ease;
}

.unmute-banner:hover {
  background: #ff5714;
  transform: scale(1.03);
}

/* Big Play Overlay */
.big-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.big-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.big-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 69, 0, 0.9);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255, 69, 0, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.big-play-btn:hover {
  transform: scale(1.1);
  background: #ff5714;
}

/* Spinner Overlay */
.spinner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 15;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Custom Controls Bar */
.controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  padding: 24px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 25;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* Timeline */
.timeline-container {
  position: relative;
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.timeline-track {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: height 0.15s ease;
}

.timeline-container:hover .timeline-track {
  height: 8px;
}

.buffer-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
}

.scrubber-handle {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 13px;
  height: 13px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease;
}

.timeline-container:hover .scrubber-handle {
  transform: translateY(-50%) scale(1);
}

.timeline-hover-time {
  position: absolute;
  top: -24px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  transform: translateX(-50%);
  display: none;
}

/* Controls Row */
.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.control-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn.active {
  color: var(--accent);
}

.text-btn {
  width: auto;
  padding: 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Volume Slider */
.volume-container {
  display: flex;
  align-items: center;
}

.volume-slider-wrapper {
  width: 0;
  overflow: hidden;
  transition: width 0.2s ease;
  display: flex;
  align-items: center;
}

.volume-container:hover .volume-slider-wrapper,
.volume-slider-wrapper:focus-within {
  width: 70px;
  margin-left: 4px;
}

#volumeSlider {
  width: 70px;
  accent-color: var(--accent);
  cursor: pointer;
  height: 4px;
}

/* Time Display */
.time-display {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #e2e8f0;
  display: flex;
  gap: 4px;
  user-select: none;
  margin-left: 4px;
}

.time-separator {
  color: var(--text-muted);
}

/* Sync Badge */
.sync-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  user-select: none;
}

.sync-badge.desynced {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.sync-badge.muted-no-audio {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
  border-color: rgba(148, 163, 184, 0.3);
}

.sync-badge.clickable {
  cursor: pointer;
  transition: all 0.15s ease, transform 0.15s ease;
}

.sync-badge.clickable:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Dropdowns */
.dropdown-wrapper {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(21, 26, 36, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px;
  display: flex;
  flex-direction: column;
  min-width: 90px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 30;
}

.dropdown-menu button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  text-align: left;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dropdown-menu button.active {
  color: var(--accent);
  font-weight: 600;
}

/* Post Origin Link (Directly above video frame, centered) */
.post-origin-bar {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  line-height: 1.45;
  font-size: 0.92rem;
  padding: 0 4px;
}

.post-origin-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.post-origin-sub-link {
  color: #34d399;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.post-origin-sub-link:hover {
  color: #6ee7b7;
  text-decoration: underline;
}

.post-origin-slash {
  color: var(--text-muted);
  user-select: none;
  flex-shrink: 0;
}

.post-origin-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-primary);
  text-decoration: none;
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
  transition: opacity 0.15s ease;
}

.post-origin-link:hover {
  opacity: 0.9;
}

.post-origin-title {
  color: #34d399;
  font-weight: 600;
  transition: color 0.15s ease;
}

.post-origin-link:hover .post-origin-title {
  text-decoration: underline;
  color: #6ee7b7;
}

.post-origin-icon {
  align-self: center;
  flex-shrink: 0;
  color: #34d399;
  opacity: 0.85;
  transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.post-origin-link:hover .post-origin-icon {
  color: #6ee7b7;
  opacity: 1;
  transform: translate(1px, -1px);
}

/* Cards & Info Grid */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  min-width: 0;
  overflow: hidden;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.info-card .card-title {
  font-size: 0.88rem;
}

.stream-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  margin-bottom: 14px;
  min-width: 0;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.detail-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  width: 95px;
  min-width: 95px;
  flex-shrink: 0;
  white-space: nowrap;
}

.detail-input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  height: 30px;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  outline: none;
  cursor: text;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.detail-input:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text-primary);
}

.detail-input:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-primary);
}

.detail-input::selection {
  background: rgba(255, 69, 0, 0.35);
  color: #ffffff;
}

.inline-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  height: 30px;
  font-size: 0.74rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.inline-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

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

.inline-copy-btn.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.detail-value {
  color: var(--text-secondary);
  min-width: 0;
  flex: 1;
}

/* Secondary meta row for Video ID and Audio Stream info */
.stream-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  padding: 2px 0 0 2px;
  min-width: 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.meta-item.meta-audio {
  flex: 1;
  min-width: 0;
}

.meta-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.meta-value {
  color: var(--text-secondary);
  font-size: 0.75rem;
  min-width: 0;
}

.meta-divider {
  color: var(--border-color);
  font-size: 0.7rem;
  flex-shrink: 0;
  user-select: none;
}

.mono {
  font-family: var(--font-mono);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  display: block;
}

/* Download Section */
.download-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.info-card .download-section {
  padding-top: 12px;
}

.download-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-item-video-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 0.78rem;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.info-card .secondary-btn {
  padding: 6px 12px;
  font-size: 0.76rem;
}

.secondary-btn:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.secondary-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-spinner {
  display: inline-block;
  animation: btn-spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes btn-spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Scheme Card */
.scheme-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
  margin-bottom: 16px;
  overflow-x: auto;
}

.code-or {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

.share-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.share-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.share-input-group {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.share-input-group input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  height: 36px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.share-input-group input:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* Shortcuts Card */
.shortcuts-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 4px;
  margin: 0 auto;
}

.shortcuts-title {
  font-weight: 600;
  color: var(--text-secondary);
}

.shortcuts-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shortcut-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Helper Utilities */
.hidden {
  display: none !important;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Body state during active resize */
body.is-resizing {
  user-select: none !important;
}

body.is-resizing * {
  pointer-events: none !important;
}

body.is-resizing .player-container,
body.is-resizing .resize-handle {
  pointer-events: auto !important;
}

/* Resize Handles */
.resize-handle {
  position: absolute;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.15s ease, color 0.15s ease;
  user-select: none;
}

.player-container:hover .resize-handle {
  opacity: 0.85;
}

.resize-handle:hover {
  opacity: 1 !important;
}

:fullscreen .resize-handle,
:fullscreen .resize-indicator,
:-webkit-full-screen .resize-handle,
:-webkit-full-screen .resize-indicator {
  display: none !important;
}

/* Bottom-Right Corner */
.resize-handle-se {
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  cursor: nwse-resize;
  color: rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.75) 0%, transparent 75%);
  border-bottom-right-radius: var(--radius-lg);
  padding: 0 4px 4px 0;
}

.resize-handle-se:hover {
  color: var(--accent);
  transform: scale(1.15);
}

/* Bottom-Left Corner */
.resize-handle-sw {
  bottom: 0;
  left: 0;
  width: 32px;
  height: 32px;
  cursor: nesw-resize;
  color: rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.75) 0%, transparent 75%);
  border-bottom-left-radius: var(--radius-lg);
  padding: 0 0 4px 4px;
}

.resize-handle-sw:hover {
  color: var(--accent);
  transform: scale(1.15);
}

/* Bottom-Center Bar */
.resize-handle-s {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 14px;
  cursor: ns-resize;
}

.resize-bar-pill {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  transition: background 0.15s ease, width 0.15s ease, height 0.15s ease;
}

.resize-handle-s:hover .resize-bar-pill {
  background: var(--accent);
  width: 56px;
  height: 5px;
}

/* Live Dimension Indicator Badge */
.resize-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 24px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 40;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.resize-indicator small {
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  body {
    padding: 12px 8px 30px;
  }

  .input-card {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .logo-icon {
    width: 60px;
    height: 60px;
    align-self: center;
  }

  .meta-item-video-id {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .url-form {
    flex-direction: column;
  }

  .primary-btn {
    width: 100%;
    justify-content: center;
  }

  .controls-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sync-badge {
    display: none;
  }

  .shortcuts-card {
    display: none;
  }
}
