/* ─── Cinema Reel Engine Tokens & Utility Styles — Helena OS ─────────── */

:root {
  --cinema-pad-x: 7.5dvh;
  --cinema-bg: #0a0908;
  --cinema-bone: #f6efe2;
  --cinema-ivory: #f1e7d2;
  --cinema-mask-vh: 10dvh;
  --cinema-slide-vh: 80dvh;
  --cinema-gap-vh: 5dvh;
  --cinema-pitch-vh: 85dvh;
  --cinema-top-pad-vh: 10dvh;
  --cinema-cursor-size: 104px;
}

@media (max-width: 639px) {
  :root {
    --cinema-pad-x: 2dvh;
  }
}

/* App Viewport Container */
.app-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.cinema-app-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1000;
  background: var(--cinema-bg, #0a0908);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cinema-app-fullscreen.has-system-banner {
  padding-top: 28px;
}

/* ─── Tactical App Shell & TopBar (Physical Layout Container) ─────────── */
.tactical-app-topbar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 9, 8, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.tactical-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 255, 136, 0.4);
  background: rgba(10, 9, 8, 0.92);
  color: #f6efe2;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.tactical-nav-btn:hover {
  border-color: #00ff88;
  color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.25);
  background: rgba(0, 255, 136, 0.08);
}

.tactical-publish-btn {
  border-color: #00ff88;
  color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.tactical-publish-btn:hover {
  background: rgba(0, 255, 136, 0.15);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.tactical-mount-container {
  flex: 1 1 0%;
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Base Cinema Container */
.cinema-container {
  position: relative;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background-color: var(--cinema-bg);
}

.cinema-container * {
  box-sizing: border-box;
}

/* Touch & Overscroll Isolation */
.cinema-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  will-change: transform;
  touch-action: none;
  padding-left: var(--cinema-pad-x);
  padding-right: var(--cinema-pad-x);
}

.cinema-scroll-contain {
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Dynamic Scanlines Overlay */
.cinema-scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 25;
  background-image: repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 3px);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 200ms ease-out;
}

/* Mask Gradients */
.cinema-mask-top {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--cinema-mask-vh);
  background: linear-gradient(180deg, var(--cinema-bg) 0%, rgba(10, 9, 8, 0) 100%);
}

.cinema-mask-bottom {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--cinema-mask-vh);
  background: linear-gradient(0deg, var(--cinema-bg) 0%, rgba(10, 9, 8, 0) 100%);
}

/* Tactical HUD Pointer Satellite Badge (Ergonomic & Non-Intrusive) */
.cinema-cursor-tactical {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  opacity: 0;
  will-change: transform, opacity;
}

.cinema-cursor-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #00ff88;
  background: rgba(8, 8, 12, 0.90);
  border: 1px solid rgba(0, 255, 136, 0.4);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.cinema-cursor-badge .badge-bracket {
  color: rgba(255, 255, 255, 0.35);
}

.cinema-cursor-badge .badge-dot {
  font-size: 7px;
  color: #00ff88;
  margin-right: 2px;
  transition: color 160ms ease;
}

.cinema-cursor-badge .badge-text {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #f1e7d2;
  text-transform: uppercase;
  transition: color 160ms ease;
}

/* Contextual State Modifiers */
.cinema-cursor-badge.is-select {
  border-color: #0eeef6;
  box-shadow: 0 0 10px rgba(14, 238, 246, 0.35);
}
.cinema-cursor-badge.is-select .badge-dot,
.cinema-cursor-badge.is-select .badge-text {
  color: #0eeef6;
}

.cinema-cursor-badge.is-drag {
  border-color: #ffaa00;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.35);
}
.cinema-cursor-badge.is-drag .badge-dot,
.cinema-cursor-badge.is-drag .badge-text {
  color: #ffaa00;
}

.cinema-cursor-badge.is-nav {
  border-color: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.35);
}

.cinema-cursor-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 160ms ease;
}

.cinema-cursor-chevron-up {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.cinema-cursor-chevron-down {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  opacity: 0;
  transition: opacity 160ms ease;
}

/* Tactical Centered Modal Dialog & Backdrop */
.cinema-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background-color: rgba(6, 6, 12, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: background-color 250ms ease, backdrop-filter 250ms ease, opacity 250ms ease, visibility 250ms ease;
}

.cinema-backdrop.is-open {
  background-color: rgba(4, 4, 8, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.cinema-aside {
  position: relative;
  z-index: 10011;
  width: min(720px, 92vw);
  max-height: 88dvh;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  transform: scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms ease, visibility 250ms ease;
  background: rgba(10, 10, 20, 0.98);
  border: 1px solid var(--cyan, #0eeef6);
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.15);
  will-change: transform, opacity;
}

.cinema-aside.is-open {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cinema-modal-scroll-container {
  width: 100%;
  height: 100%;
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Custom Retro Scrollbar */
.cinema-modal-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.cinema-modal-scroll-container::-webkit-scrollbar-track {
  background: rgba(10, 9, 8, 0.5);
}

.cinema-modal-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.35);
  border-radius: 9999px;
}

.cinema-modal-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 136, 0.7);
}

@media (max-width: 639px) {
  .cinema-aside {
    width: 95vw;
    max-height: 92dvh;
  }
}

/* Explore Button Hover Sweep */
.cinema-explore-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 300ms ease-out;
}

.cinema-explore-btn:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.cinema-explore-btn .sweep {
  pointer-events: none;
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
  transition: transform 500ms ease-out;
}

.cinema-explore-btn:hover .sweep {
  transform: translateX(0);
}

/* ─── Tactical Styling Extensions ─── */
.cinema-slide-card-tactical {
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  border: 1px solid rgba(0, 255, 136, 0.25);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.cinema-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.cinema-cat-relato {
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.cinema-cat-transmision {
  color: #ff3344;
  border: 1px solid rgba(255, 51, 68, 0.4);
}

.cinema-cat-survival {
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.4);
}

.cinema-slide-purge-out {
  opacity: 0;
  filter: blur(24px) grayscale(1);
  transform: scale(0.92);
  transition: all 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Cursor Visibility Overrides (Native Ergonomics) ─── */
button,
a,
[data-edit-btn],
[data-delete-btn],
[data-explore-btn],
select,
#modal-close-x,
#cinema-publish-btn {
  cursor: pointer;
}

/* ─── TacticalFeedApp Native UI & Grid ─────────────────────────────────── */
.tactical-feed-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-primary, #08080a);
  color: var(--text-primary, #f0f0f8);
  padding: 2.5rem 2rem 6rem 2rem;
  box-sizing: border-box;
  z-index: 10;
}

.tactical-feed-viewport::-webkit-scrollbar {
  width: 6px;
}
.tactical-feed-viewport::-webkit-scrollbar-track {
  background: #08080a;
}
.tactical-feed-viewport::-webkit-scrollbar-thumb {
  background: #1e1e2e;
  border-radius: 2px;
}
.tactical-feed-viewport::-webkit-scrollbar-thumb:hover {
  background: #00ff88;
}

.tactical-feed-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.tactical-title-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #00ff88;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tactical-main-heading {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #f6efe2;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.tactical-sub-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #9e9eb6;
  margin: 0.5rem 0 0 0;
  max-width: 700px;
  line-height: 1.5;
}

.tactical-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.tactical-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.tactical-chip {
  background: rgba(20, 20, 32, 0.6);
  border: 1px solid #1e1e2e;
  color: #9e9eb6;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tactical-chip:hover {
  border-color: #00ff88;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.05);
}

.tactical-chip.is-active {
  border-color: #00ff88;
  color: #08080a;
  background: #00ff88;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

.tactical-sort-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tactical-sort-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #9e9eb6;
  letter-spacing: 0.15em;
}

.tactical-select-compact {
  padding: 0.4rem 0.8rem;
  font-size: 11px;
  font-family: 'Space Mono', monospace;
  background: #0d0d12;
  border: 1px solid #1e1e2e;
  color: #f0f0f8;
  border-radius: 2px;
}

.tactical-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.tactical-feed-card {
  position: relative;
  background: #0d0d12;
  border: 1px solid #1e1e2e;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  cursor: pointer;
}

.tactical-feed-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 255, 136, 0.15);
}

.tactical-feed-card:focus-visible {
  border-color: #00ff88;
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.3);
}

.tactical-card-corner-tr {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid #00ff88;
  border-right: 2px solid #00ff88;
  pointer-events: none;
  z-index: 5;
}

.tactical-card-corner-bl {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #00ff88;
  border-left: 2px solid #00ff88;
  pointer-events: none;
  z-index: 5;
}

.tactical-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(20, 20, 32, 0.4);
}

.tactical-card-author-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tactical-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  border: 1px solid #00ff88;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.5);
}

.tactical-author-info {
  display: flex;
  flex-direction: column;
}

.tactical-author-name {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tactical-author-date {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #9e9eb6;
}

.tactical-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.tactical-category-chip {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  border: 1px solid #00ff88;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.4);
}

.tactical-server-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: #9e9eb6;
  letter-spacing: 0.08em;
}

.tactical-card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #08080a;
  overflow: hidden;
}

.tactical-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.tactical-feed-card:hover .tactical-card-media {
  transform: scale(1.03);
}

.tactical-media-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 3px);
  opacity: 0.6;
}

.tactical-media-zoom-btn {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(8, 8, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f0f0f8;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

.tactical-feed-card:hover .tactical-media-zoom-btn {
  opacity: 1;
  border-color: #00ff88;
  color: #00ff88;
}

.tactical-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tactical-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0f0f8;
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tactical-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #c8c8dc;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tactical-card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(14, 14, 20, 0.4);
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.6rem;
  column-gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}

.tactical-interaction-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.tactical-action-btn {
  background: transparent;
  border: none;
  color: #9e9eb6;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 2px;
  transition: color 0.2s;
  white-space: nowrap;
}

.tactical-action-btn:hover {
  color: #f0f0f8;
}

.tactical-action-btn:focus-visible {
  outline: 2px solid var(--cyan);
}

.tactical-like-btn.has-liked {
  color: #ff3344;
}

.tactical-like-btn.has-liked i {
  color: #ff3344;
}

.tactical-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tactical-icon-action {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9e9eb6;
  font-size: 11px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tactical-icon-action:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.tactical-btn-edit:hover {
  color: #0eeef6;
  border-color: #0eeef6;
  background: rgba(14, 238, 246, 0.15);
}

.tactical-btn-delete:hover {
  color: #ff3344;
  border-color: #ff3344;
  background: rgba(255, 51, 68, 0.15);
}

.tactical-explore-link {
  background: transparent;
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.65rem;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tactical-explore-link:hover {
  background: #00ff88;
  color: #08080a;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.tactical-explore-link:focus-visible {
  outline: 2px solid #00ff88;
  outline-offset: 1px;
}

/* Fallback de Video/Imagen Corrupta */
.tactical-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0d0d14;
  color: #9e9eb6;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 1rem;
  text-align: center;
}

.tactical-media-fallback .cyber-icon {
  font-size: 1.3rem;
  color: #ffaa00;
}

/* Animación de Arribo en Tiempo Real */
@keyframes tacticalArrivalGlow {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.8), inset 0 0 15px rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tactical-card-new-arrival {
  animation: tacticalArrivalGlow 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Contenedor de Previsualización Multimedia */
.tactical-preview-container {
  margin-top: 8px;
  margin-bottom: 12px;
  position: relative;
  width: 100%;
  max-height: 180px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: #08080a;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tactical-upload-preview {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
}

.tactical-preview-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(8, 8, 10, 0.85);
  border: 1px solid #ff3344;
  color: #ff3344;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  cursor: pointer;
  border-radius: 2px;
  z-index: 10;
  transition: all 0.2s ease;
}

.tactical-preview-remove-btn:hover {
  background: #ff3344;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 51, 68, 0.5);
}

@media (max-width: 768px) {
  .tactical-app-topbar {
    padding: 0.65rem 1rem;
  }
  .tactical-nav-btn {
    font-size: 0.68rem;
    padding: 0.4rem 0.8rem;
    gap: 5px;
  }
  .tactical-feed-viewport {
    padding: 1.5rem 1rem 5rem 1rem;
  }
  .tactical-main-heading {
    font-size: 1.6rem;
  }
  .tactical-feed-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .tactical-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .tactical-filter-chips {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }
}