:root {
  --win-bg: #008080;
  --win-gray: #c0c0c0;
  --win-gray-light: #dfdfdf;
  --win-gray-dark: #808080;
  --win-gray-darker: #404040;
  --win-white: #ffffff;
  --win-black: #000000;
  --win-navy: #000080;
  --win-blue-light: #1084d0;
  --win-selection: #000080;
  --win-text: #000000;
  --win-font: 'Tahoma', 'Segoe UI', 'MS Sans Serif', Geneva, sans-serif;
  --win-mono-font: 'Courier New', Courier, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body,
html {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: var(--win-font);
  font-size: 11px;
  color: var(--win-text);
  background-color: var(--win-bg);
  cursor: default;
}

::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: #dfdfdf url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBNZWRpYXBhc3M/cG5nMzJCYXNlNjSYPffIAAAAE0lEQVR42mP4//8/AxMDAwMDEwAALAMDAcBmH4IAAAAASUVORK5CYII=') repeat;
}

::-webkit-scrollbar-thumb {
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark);
}

::-webkit-scrollbar-button {
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark);
  width: 16px;
  height: 16px;
}

#desktop {
  position: relative;
  width: 100vw;
  height: calc(100vh - 34px);
  background-image: url('assets/wallpaper.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
}

#desktop-surface {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.crt-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 6px 100%;
  opacity: 0.8;
  display: none;
}

body.crt-active .crt-overlay {
  display: block;
}

.center-icons-cluster {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  z-index: 20;
  animation: clusterEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes clusterEntrance {
  0% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.top-left-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 20;
}

.desktop-icon {
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 2px;
  transition: transform 0.15s ease, filter 0.15s ease;
  position: relative;
}

.desktop-icon:hover {
  transform: translateY(-2px);
}

.desktop-icon:active {
  transform: translateY(1px);
}

.desktop-icon.selected {
  outline: 1px dotted #ffffff;
}

.desktop-icon.selected .icon-img-wrapper {
  filter: drop-shadow(0 0 4px #000080);
}

.desktop-icon.selected .icon-title {
  background-color: var(--win-selection);
  color: var(--win-white);
  border: 1px dotted #ffffff;
}

.icon-img-wrapper {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.6));
}

.icon-img-wrapper svg,
.icon-img-wrapper img {
  width: 48px;
  height: 48px;
  image-rendering: auto;
  object-fit: contain;
}

.icon-title {
  color: var(--win-white);
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  padding: 2px 6px;
  border-radius: 1px;
  word-break: break-word;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.8);
  border: 1px solid transparent;
  max-width: 88px;
}

.win98-outset {
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark);
}

.win98-inset {
  background: var(--win-white);
  border-top: 1px solid var(--win-gray-dark);
  border-left: 1px solid var(--win-gray-dark);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  box-shadow: inset 1px 1px 0 var(--win-black), inset -1px -1px 0 var(--win-gray-light);
}

.win98-button {
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark);
  padding: 3px 12px;
  font-family: var(--win-font);
  font-size: 11px;
  color: var(--win-black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  outline: none;
  min-height: 23px;
}

.win98-button:focus {
  outline: 1px dotted var(--win-black);
  outline-offset: -4px;
}

.win98-button:active,
.win98-button.pressed {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  box-shadow: inset 1px 1px 0 var(--win-gray-dark), inset -1px -1px 0 var(--win-gray-light);
  padding: 4px 11px 2px 13px;
}

.win98-button.primary {
  font-weight: bold;
  outline: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-white), inset -1px -1px 0 var(--win-gray-dark);
}

.win98-window {
  position: absolute;
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark), 3px 3px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 220px;
  z-index: 100;
  display: none;
  transition: top 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.win98-window.open {
  display: flex;
  animation: windowOpenScale 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes windowOpenScale {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.win98-window.minimized {
  display: none !important;
}

.win98-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 34px) !important;
  border-radius: 0;
  box-shadow: none;
}

.window-titlebar {
  height: 22px;
  background: linear-gradient(90deg, var(--win-gray-dark) 0%, #b5b5b5 100%);
  padding: 2px 3px 2px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: move;
  color: #dfdfdf;
  font-weight: bold;
  font-size: 11px;
}

.win98-window.active .window-titlebar {
  background: linear-gradient(90deg, var(--win-navy) 0%, var(--win-blue-light) 100%);
  color: var(--win-white);
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.titlebar-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.titlebar-text {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.titlebar-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.win-ctrl-btn {
  width: 16px;
  height: 14px;
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark);
  color: var(--win-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  position: relative;
  box-sizing: border-box;
}

.win-ctrl-btn:active {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  box-shadow: inset 1px 1px 0 var(--win-gray-dark);
}

.win-ctrl-btn.btn-min::after {
  content: '';
  display: block;
  width: 6px;
  height: 2px;
  background: var(--win-black);
  position: absolute;
  bottom: 2px;
  left: 4px;
}

.win-ctrl-btn.btn-max::after {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid var(--win-black);
  border-top: 2px solid var(--win-black);
  box-sizing: border-box;
  position: absolute;
  top: 1px;
  left: 2px;
}

.win98-window.maximized .win-ctrl-btn.btn-max::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--win-black);
  border-top: 2px solid var(--win-black);
  box-sizing: border-box;
  position: absolute;
  top: 1px;
  right: 2px;
  z-index: 1;
}

.win98-window.maximized .win-ctrl-btn.btn-max::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  background: var(--win-gray);
  border: 1px solid var(--win-black);
  border-top: 2px solid var(--win-black);
  box-sizing: border-box;
  position: absolute;
  bottom: 1px;
  left: 2px;
  z-index: 2;
}

.win-ctrl-btn.btn-close,
.win-ctrl-btn.btn-close-err {
  margin-left: 2px;
  font-family: 'Tahoma', 'Segoe UI Symbol', sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
}

.win-ctrl-btn:active::after,
.win-ctrl-btn:active::before {
  transform: translate(1px, 1px);
}

.window-menubar {
  height: 20px;
  background: var(--win-gray);
  border-bottom: 1px solid var(--win-gray-dark);
  display: flex;
  align-items: center;
  padding: 0 4px;
  font-size: 11px;
}

.menu-item {
  padding: 2px 6px;
  cursor: pointer;
}

.menu-item:hover {
  background-color: var(--win-navy);
  color: var(--win-white);
}

.menu-item span {
  text-decoration: underline;
}

.window-toolbar {
  background: var(--win-gray);
  border-bottom: 1px solid var(--win-gray-dark);
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.toolbar-btn {
  padding: 2px 6px;
  height: 22px;
  font-size: 11px;
  background: var(--win-gray);
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn:hover {
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
}

.toolbar-btn:active {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
}

.toolbar-divider {
  width: 2px;
  height: 18px;
  border-left: 1px solid var(--win-gray-dark);
  border-right: 1px solid var(--win-white);
  margin: 0 2px;
}

.window-body {
  flex: 1;
  background: var(--win-gray);
  padding: 8px;
  overflow: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.window-statusbar {
  height: 20px;
  background: var(--win-gray);
  border-top: 1px solid var(--win-gray-dark);
  display: flex;
  align-items: center;
  padding: 2px;
  gap: 4px;
}

.status-panel {
  flex: 1;
  height: 16px;
  background: var(--win-gray);
  border-top: 1px solid var(--win-gray-dark);
  border-left: 1px solid var(--win-gray-dark);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  padding: 0 4px;
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #333;
  overflow: hidden;
  white-space: nowrap;
}

.status-panel.fixed-sm {
  flex: 0 0 60px;
}

.status-panel.fixed-md {
  flex: 0 0 110px;
}

.about-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}

.about-tab {
  padding: 3px 12px;
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: none;
  box-shadow: inset 1px 1px 0 var(--win-gray-light);
  cursor: pointer;
  font-size: 11px;
}

.about-tab.active {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 1px solid var(--win-gray);
  box-shadow: inset 1px 1px 0 var(--win-gray-light);
  font-weight: bold;
  margin-top: -2px;
  padding-bottom: 4px;
}

.tab-content-box {
  flex: 1;
  background: var(--win-gray);
  border: 2px solid var(--win-white);
  border-right-color: var(--win-black);
  border-bottom-color: var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark);
  padding: 14px;
  overflow-y: auto;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.system-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--win-gray-dark);
  padding-bottom: 12px;
}

.system-logo {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}

.system-details-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px;
  font-size: 11px;
  margin-top: 8px;
}

.system-details-grid .label {
  font-weight: bold;
  color: var(--win-navy);
}

.spec-meter-container {
  margin-top: 12px;
  padding: 8px;
  border: 1px solid var(--win-gray-dark);
  background: #e8e8e8;
}

.spec-meter-bar {
  height: 16px;
  background: var(--win-white);
  border: 1px solid var(--win-gray-dark);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.spec-meter-fill {
  height: 100%;
  width: 78%;
  background: repeating-linear-gradient(90deg,
      var(--win-navy),
      var(--win-navy) 8px,
      var(--win-blue-light) 8px,
      var(--win-blue-light) 10px);
}

/* --- TFF Cinema '98 (Movie Browser / Netflix 98) Styles --- */
.tff-cinema-window {
  min-width: 620px;
  min-height: 480px;
}

.tff-cinema-body {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--win-gray);
  overflow: hidden;
}

.tff-cinema-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  background: #dcd8d0;
  flex-wrap: wrap;
}

.tff-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tff-header-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.4));
  image-rendering: auto;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.tff-header-logo:hover {
  transform: scale(1.05);
}

.tff-brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tff-brand-main {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #b80000;
  text-shadow: 1px 1px 0 #ffffff;
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: 'Arial Black', Impact, 'Segoe UI', Tahoma, sans-serif;
}

.tff-brand-main span {
  color: #000080;
  font-size: 11px;
  background: #ffcc00;
  padding: 0 4px;
  border-radius: 2px;
  border: 1px solid #806000;
  font-weight: bold;
}

.tff-brand-sub {
  font-size: 9px;
  color: var(--win-gray-darker);
  font-weight: bold;
  letter-spacing: 0.4px;
}

.tff-header-search-wrap {
  flex: 1;
  max-width: 360px;
  min-width: 180px;
}

.tff-search-box {
  display: flex;
  align-items: center;
  padding: 2px 6px;
  background: #ffffff;
  gap: 6px;
  height: 24px;
}

.tff-search-icon {
  font-size: 11px;
  opacity: 0.7;
}

.tff-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--win-font);
  font-size: 11px;
  background: transparent;
  color: #000000;
}

.tff-search-clear {
  border: none;
  background: none;
  font-size: 10px;
  color: #888;
  cursor: pointer;
  padding: 0 2px;
  display: none;
}

.tff-search-clear.visible {
  display: block;
}

.tff-stream-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #000000;
  color: #00ff66;
  font-family: var(--win-mono-font);
  font-size: 10px;
  white-space: nowrap;
}

.tff-stream-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 6px #00ff66;
  animation: pulseStream 1.6s infinite;
}

@keyframes pulseStream {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.tff-category-nav {
  background: var(--win-gray);
  padding: 3px 0;
  border-bottom: 1px solid var(--win-gray-dark);
}

.tff-category-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tff-pill-btn {
  padding: 2px 8px;
  font-size: 10px;
  white-space: nowrap;
  min-height: 22px;
}

.tff-pill-btn.active {
  background: var(--win-navy);
  color: #ffffff;
  font-weight: bold;
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  box-shadow: inset 1px 1px 0 #000040;
}

.tff-cinema-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 8px 2px;
}

/* --- Hero Selected Movie Showcase (Landscape Banner) --- */
.tff-hero-banner {
  background: #070d18;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1px;
}

.tff-hero-media {
  position: relative;
  width: 100%;
  min-height: 200px;
  background: #000000;
  overflow: hidden;
}

.tff-hero-backdrop {
  width: 100%;
  height: 100%;
  min-height: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0b1e36 0%, #1f0d2c 50%, #000000 100%);
  transition: background 0.3s ease;
}

.tff-hero-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%);
  background-size: 100% 3px;
  pointer-events: none;
  z-index: 2;
}

.tff-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(0, 220, 255, 0.25) 0%, rgba(0, 0, 0, 0.8) 75%);
  pointer-events: none;
  z-index: 1;
}

.tff-hero-badge-float {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  background: #e50914;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.tff-hero-overlay-center {
  position: relative;
  z-index: 3;
  margin: auto 0;
}

.tff-hero-art-icon {
  font-size: 30px;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.6));
}

.tff-hero-art-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000000, 0 0 16px rgba(0, 255, 255, 0.6);
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.15;
}

.tff-hero-overlay-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
}

.tff-hero-runtime-badge,
.tff-hero-res-badge {
  font-size: 10px;
  font-family: var(--win-mono-font);
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.85);
  color: #00ff66;
}

/* --- Hero Embedded Player --- */
.tff-hero-player-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #000000;
}

.tff-screen-container {
  position: relative;
  width: 100%;
  height: 220px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#media-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.screen-hud {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #00ff66;
  font-family: var(--win-mono-font);
  font-size: 11px;
  text-shadow: 0 0 4px rgba(0, 255, 102, 0.8);
  pointer-events: none;
  z-index: 5;
}

.tff-player-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  font-size: 10px;
  font-weight: bold;
  background: #cc0000 !important;
  color: #ffffff !important;
}

.player-controls-panel {
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-seek-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-display {
  font-family: var(--win-mono-font);
  font-size: 11px;
  font-weight: bold;
  background: #000000;
  color: #00ff66;
  padding: 2px 6px;
  border: 1px solid var(--win-gray-dark);
}

.seek-slider {
  flex: 1;
  accent-color: var(--win-navy);
  height: 6px;
}

.player-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.playback-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.media-btn {
  width: 28px;
  height: 24px;
  font-size: 12px;
  font-weight: bold;
}

.track-selector-select {
  font-family: var(--win-font);
  font-size: 11px;
  padding: 2px 4px;
  background: var(--win-white);
  border: 1px solid var(--win-gray-dark);
}

/* --- Hero Details & Synopsis --- */
.tff-hero-details {
  background: var(--win-gray);
  color: #000000;
  padding: 10px 12px;
  border-top: 2px solid var(--win-white);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tff-hero-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.tff-hero-title-group {
  flex: 1;
  min-width: 220px;
}

.tff-hero-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.tff-tag-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: bold;
  border: 1px solid var(--win-gray-dark);
}

.tff-tag-genre {
  background: #e0ecff;
  color: #000080;
}

.tff-tag-rating {
  background: #fff4cc;
  color: #8a6d00;
}

.tff-tag-award {
  background: #e6ffed;
  color: #0a6c20;
}

.tff-hero-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--win-navy);
  letter-spacing: 0.3px;
  margin: 0;
}

.tff-hero-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.tff-btn-play-hero {
  font-size: 12px;
  font-weight: bold;
  padding: 4px 14px;
  background: #000080;
  color: #ffffff;
}

.tff-btn-play-hero .btn-play-icon {
  color: #ffcc00;
  margin-right: 2px;
}

.tff-btn-secondary {
  font-size: 11px;
  padding: 3px 10px;
}

.tff-hero-synopsis-box {
  background: var(--win-white);
  padding: 8px 10px;
  max-height: 75px;
  overflow-y: auto;
}

.tff-hero-synopsis {
  font-size: 11px;
  line-height: 1.45;
  color: #222222;
  user-select: text;
  -webkit-user-select: text;
}

.tff-hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
  font-size: 10px;
  background: #e8e8e8;
  padding: 6px 10px;
  border: 1px solid var(--win-gray-dark);
}

.tff-meta-col {
  display: flex;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tff-meta-label {
  font-weight: bold;
  color: var(--win-gray-darker);
}

.tff-meta-val {
  color: #111111;
  font-weight: 500;
}

/* --- Catalog Grid Section --- */
.tff-catalog-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.tff-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px;
  border-bottom: 1px solid var(--win-gray-dark);
  flex-wrap: wrap;
  gap: 6px;
}

.tff-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tff-section-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--win-navy);
}

.tff-catalog-count {
  font-size: 10px;
  padding: 1px 6px;
  background: var(--win-white);
  color: #555555;
}

.tff-sort-select {
  padding: 2px 4px;
  font-size: 11px;
  font-family: var(--win-font);
}

.tff-movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  padding: 4px 0;
}

/* --- Movie Poster Card --- */
.tff-movie-card {
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark), 2px 2px 5px rgba(0, 0, 0, 0.25);
  padding: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  position: relative;
  border-radius: 1px;
}

.tff-movie-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark), 3px 6px 12px rgba(0, 0, 0, 0.4);
}

.tff-movie-card.active {
  border-top: 2px solid var(--win-navy);
  border-left: 2px solid var(--win-navy);
  border-right: 2px solid var(--win-navy);
  border-bottom: 2px solid var(--win-navy);
  background: #cce0ff;
  box-shadow: 0 0 8px rgba(0, 0, 128, 0.6);
}

.tff-card-poster-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #101520;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  border: 1px solid var(--win-gray-darker);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

.tff-poster-badge {
  align-self: flex-end;
  font-size: 8px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.85);
  color: #ffcc00;
  padding: 1px 4px;
  border-radius: 1px;
  border: 1px solid rgba(255, 204, 0, 0.4);
}

.tff-poster-center {
  text-align: center;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tff-poster-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.tff-poster-title-art {
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000000;
  line-height: 1.15;
  margin-top: 4px;
  letter-spacing: 0.4px;
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
}

.tff-poster-bottom-row {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #00ffcc;
  font-family: var(--win-mono-font);
}

.tff-card-info {
  padding: 2px 1px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tff-card-title {
  font-size: 11px;
  font-weight: bold;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tff-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #444444;
}

.tff-card-rating {
  color: #a07000;
  font-weight: bold;
}

/* --- Empty Search State --- */
.tff-empty-state {
  padding: 24px 16px;
  text-align: center;
  background: var(--win-gray);
  margin: 16px 0;
}

.tff-empty-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.tff-empty-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--win-navy);
  margin-bottom: 4px;
}

.tff-empty-sub {
  font-size: 11px;
  color: #555555;
}

.schedule-layout {
  flex: 1;
  display: grid;
.schedule-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6px;
  height: 100%;
}

.calendar-sidebar {
  background: var(--win-white);
  border: 1px solid var(--win-gray-dark);
  box-shadow: inset 1px 1px 0 var(--win-black);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mini-cal-header {
  font-weight: bold;
  text-align: center;
  background: var(--win-navy);
  color: var(--win-white);
  padding: 3px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  font-size: 10px;
}

.mini-cal-grid .day-name {
  font-weight: bold;
  color: var(--win-gray-dark);
  padding-bottom: 2px;
}

.mini-cal-grid .day {
  padding: 3px 0;
  cursor: pointer;
  border-radius: 1px;
  transition: background 0.15s ease;
}

.mini-cal-grid .day:hover {
  background: #d0e0ff;
}

.mini-cal-grid .day.festival-day {
  background: #fff3bf;
  color: #000000;
  font-weight: bold;
  border: 1px solid #d4a017;
}

.mini-cal-grid .day.festival-day:hover {
  background: #ffe066;
}

.mini-cal-grid .day.active-day {
  background: var(--win-navy) !important;
  color: var(--win-white) !important;
  font-weight: bold;
}

.cal-sidebar-section-title {
  font-weight: bold;
  font-size: 10px;
  color: var(--win-navy);
  border-bottom: 1px solid var(--win-gray-light);
  padding-bottom: 2px;
  margin-top: 4px;
}

.schedule-day-filters {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.schedule-day-btn {
  font-size: 10px;
  text-align: left;
  padding: 3px 6px;
  width: 100%;
  cursor: pointer;
}

.schedule-day-btn.active {
  background: var(--win-navy);
  color: var(--win-white);
  font-weight: bold;
}

.schedule-venues-legend {
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.schedule-readonly-notice {
  margin-top: auto;
  padding: 6px;
  background: #fff8e1;
  border: 1px solid #ffd54f;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  line-height: 1.25;
}

.tasks-main-view {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.schedule-toolbar-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
  background: #dcd8d0;
  flex-wrap: wrap;
}

.schedule-search-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--win-white);
  flex: 1;
  min-width: 180px;
}

.schedule-search-input {
  border: none;
  outline: none;
  font-size: 11px;
  font-family: var(--win-font);
  width: 100%;
  background: transparent;
}

.schedule-search-clear {
  background: none;
  border: none;
  font-size: 10px;
  cursor: pointer;
  color: #888888;
  display: none;
}

.schedule-search-clear.visible {
  display: block;
}

.schedule-hall-filter-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.schedule-select {
  padding: 2px 4px;
  font-size: 10px;
  font-family: var(--win-font);
}

.schedule-sync-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--win-white);
  font-size: 10px;
  font-weight: bold;
  color: var(--win-navy);
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00cc44;
  box-shadow: 0 0 4px #00ff66;
  animation: pulseSync 1.5s infinite;
}

@keyframes pulseSync {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.tasks-table-container {
  flex: 1;
  background: var(--win-white);
  border: 1px solid var(--win-gray-dark);
  box-shadow: inset 1px 1px 0 var(--win-black);
  overflow-y: auto;
}

.tasks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.tasks-table th {
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-gray-dark);
  border-bottom: 1px solid var(--win-gray-dark);
  padding: 4px 6px;
  text-align: left;
  position: sticky;
  top: 0;
  font-weight: bold;
  color: #000000;
  z-index: 2;
}

.tasks-table td {
  padding: 5px 6px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: middle;
}

.tasks-table tr:hover {
  background: #edf4ff;
}

.tasks-table tr.gala-row {
  background: #fffdf2;
}

.tasks-table tr.gala-row:hover {
  background: #fff8d6;
}

.schedule-badge-pill {
  font-size: 9px;
  font-family: var(--win-mono-font);
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
  display: inline-block;
}

.schedule-movie-link-btn {
  font-size: 10px;
  padding: 2px 6px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
}

.wordpad-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wordpad-content-wrapper {
  flex: 1;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px;
  margin-top: 4px;
  overflow: hidden;
}

.whitebook-toc {
  background: var(--win-white);
  border: 1px solid var(--win-gray-dark);
  box-shadow: inset 1px 1px 0 var(--win-black);
  padding: 6px;
  overflow-y: auto;
}

.toc-title {
  font-weight: bold;
  font-size: 11px;
  color: var(--win-navy);
  margin-bottom: 6px;
  border-bottom: 1px solid var(--win-gray-light);
  padding-bottom: 2px;
}

.toc-item {
  padding: 3px 4px;
  cursor: pointer;
  font-size: 11px;
  border-radius: 1px;
}

.toc-item:hover {
  background: #edf4ff;
}

.toc-item.active {
  background: var(--win-selection);
  color: var(--win-white);
}

.wordpad-sheet {
  flex: 1;
  background: var(--win-white);
  border: 1px solid var(--win-gray-dark);
  box-shadow: inset 1px 1px 0 var(--win-black);
  padding: 16px 20px;
  overflow-y: auto;
  font-family: 'Times New Roman', Times, serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
}

.wordpad-sheet h2 {
  font-family: var(--win-font);
  font-size: 16px;
  color: var(--win-navy);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--win-gray-dark);
  padding-bottom: 2px;
}

.wordpad-sheet p {
  margin-bottom: 12px;
  user-select: text;
  -webkit-user-select: text;
}

.wordpad-sheet ul {
  margin-left: 20px;
  margin-bottom: 12px;
  user-select: text;
  -webkit-user-select: text;
}

.win98-error-dialog {
  position: absolute;
  width: 440px;
  max-width: 90vw;
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark), 4px 4px 14px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  animation: errorShake 0.25s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes errorShake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.error-body-container {
  padding: 12px 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.error-icon-graphic {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.error-text-content {
  flex: 1;
  font-size: 11px;
  line-height: 1.4;
}

.error-msg-bold {
  font-weight: bold;
  margin-bottom: 4px;
}

.error-button-row {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 14px 12px 14px;
}

.error-details-pane {
  margin: 0 14px 12px 14px;
  background: var(--win-white);
  border: 1px solid var(--win-gray-dark);
  box-shadow: inset 1px 1px 0 var(--win-black);
  padding: 8px;
  font-family: var(--win-mono-font);
  font-size: 10px;
  max-height: 110px;
  overflow-y: auto;
  user-select: text;
  -webkit-user-select: text;
  display: none;
}

.error-details-pane.visible {
  display: block;
}

#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 34px;
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  box-shadow: inset 0 1px 0 var(--win-gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px;
  z-index: 10000;
}

.taskbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.start-btn {
  height: 26px;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.start-logo {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

.taskbar-divider {
  width: 2px;
  height: 22px;
  border-left: 1px solid var(--win-gray-dark);
  border-right: 1px solid var(--win-white);
  margin: 0 2px;
}

.taskbar-tasks-container {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  overflow-x: auto;
}

.taskbar-task-btn {
  height: 26px;
  min-width: 130px;
  max-width: 180px;
  background: var(--win-gray);
  border-top: 1px solid var(--win-white);
  border-left: 1px solid var(--win-white);
  border-right: 1px solid var(--win-black);
  border-bottom: 1px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-task-btn.active {
  border-top: 1px solid var(--win-black);
  border-left: 1px solid var(--win-black);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  box-shadow: inset 1px 1px 0 var(--win-gray-dark);
  background: #dfdfdf url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBNZWRpYXBhc3M/cG5nMzJCYXNlNjSYPffIAAAAE0lEQVR42mP4//8/AxMDAwMDEwAALAMDAcBmH4IAAAAASUVORK5CYII=') repeat;
  font-weight: bold;
  padding-top: 1px;
  padding-left: 7px;
}

.taskbar-task-btn img,
.taskbar-task-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.taskbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.system-tray {
  height: 24px;
  background: var(--win-gray);
  border-top: 1px solid var(--win-gray-dark);
  border-left: 1px solid var(--win-gray-dark);
  border-right: 1px solid var(--win-white);
  border-bottom: 1px solid var(--win-white);
  box-shadow: inset 1px 1px 0 var(--win-black);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 11px;
}

.tray-icon {
  width: 14px;
  height: 14px;
  cursor: pointer;
  opacity: 0.85;
}

.tray-icon:hover {
  opacity: 1;
}

.start-menu {
  position: fixed;
  bottom: 34px;
  left: 2px;
  width: 220px;
  background: var(--win-gray);
  border-top: 2px solid var(--win-white);
  border-left: 2px solid var(--win-white);
  border-right: 2px solid var(--win-black);
  border-bottom: 2px solid var(--win-black);
  box-shadow: inset 1px 1px 0 var(--win-gray-light), inset -1px -1px 0 var(--win-gray-dark), 3px 3px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  z-index: 10001;
  display: none;
}

.start-menu.open {
  display: flex;
}

.start-menu-sidebar {
  width: 28px;
  background: linear-gradient(180deg, var(--win-navy) 0%, var(--win-blue-light) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}

.start-menu-banner-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--win-white);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
}

.start-menu-banner-text span {
  font-weight: normal;
  color: #dfdfdf;
}

.start-menu-items {
  flex: 1;
  padding: 2px 0;
  display: flex;
  flex-direction: column;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 11px;
}

.start-menu-item:hover {
  background-color: var(--win-navy);
  color: var(--win-white);
}

.start-menu-item svg,
.start-menu-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.start-menu-separator {
  height: 2px;
  border-top: 1px solid var(--win-gray-dark);
  border-bottom: 1px solid var(--win-white);
  margin: 3px 2px;
}

/* --- Netflix 98 Views Switching & Detail Page --- */
.tff-catalog-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.tff-detail-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  height: 100%;
  background: var(--win-gray);
  animation: fadeInDetail 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDetail {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tff-detail-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: #dcd8d0;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--win-gray-dark);
}

.tff-detail-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tff-back-btn {
  font-weight: bold;
  font-size: 11px;
  padding: 2px 10px;
  cursor: pointer;
}

.tff-breadcrumb-trail {
  font-size: 11px;
  color: var(--win-gray-darker);
}

.tff-breadcrumb-trail span {
  color: #333333;
}

.tff-breadcrumb-trail strong {
  color: var(--win-navy);
}

.tff-detail-nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tff-match-pill {
  background: #000000;
  color: #00ff66;
  font-family: var(--win-mono-font);
  font-size: 10px;
  padding: 2px 6px;
  font-weight: bold;
}

.tff-detail-dialup-badge {
  background: var(--win-white);
  font-size: 10px;
  padding: 2px 6px;
  color: #333;
}

.tff-detail-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 14px 2px;
}

/* --- Full Widescreen Landscape Artwork Banner in Detail View --- */
.tff-detail-hero {
  background: #000000;
  border-radius: 1px;
  overflow: hidden;
  height: 175px;
  min-height: 175px;
}

.tff-detail-hero-backdrop {
  position: relative;
  padding: 12px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #0b1e36 0%, #1f0d2c 50%, #000000 100%);
  transition: background 0.3s ease;
  box-sizing: border-box;
}

.tff-detail-hero-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%);
  background-size: 100% 3px;
  pointer-events: none;
  z-index: 2;
}

.tff-detail-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 25%, rgba(0, 240, 255, 0.25) 0%, rgba(0, 0, 0, 0.85) 75%);
  pointer-events: none;
  z-index: 1;
}

.tff-detail-hero-top-badges {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tff-detail-award-badge {
  background: rgba(255, 204, 0, 0.2);
  color: #ffea75;
  border: 1px solid rgba(255, 204, 0, 0.5);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 2px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.tff-detail-hero-graphic-center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tff-detail-hero-icon {
  font-size: 44px;
  filter: drop-shadow(0 0 16px rgba(0, 255, 200, 0.7));
  margin-bottom: 2px;
}

.tff-detail-hero-art-sub {
  font-size: 10px;
  font-family: var(--win-mono-font);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.tff-detail-hero-bottom-info {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}

.tff-hero-banner-label {
  font-size: 9px;
  font-family: var(--win-mono-font);
  background: rgba(0, 0, 0, 0.8);
  color: #00ffcc;
  padding: 2px 6px;
}

/* --- Title Card Section (Below Banner, Above Storyline) --- */
.tff-detail-title-card {
  padding: 12px 14px;
  background: var(--win-gray);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tff-detail-title-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.tff-detail-title-wrap {
  flex: 1;
  min-width: 250px;
}

.tff-detail-title-main {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--win-navy);
  text-shadow: 1px 1px 0 #ffffff;
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.15;
  margin: 0;
}

.tff-detail-tagline-main {
  font-size: 12px;
  font-style: italic;
  color: #333333;
  margin-top: 4px;
  font-family: 'Georgia', 'Times New Roman', serif;
}

.tff-detail-meta-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.tff-pill-meta {
  font-size: 10px;
  font-family: var(--win-mono-font);
  padding: 2px 6px;
  background: var(--win-white);
  color: var(--win-navy);
  font-weight: bold;
  border: 1px solid var(--win-gray-dark);
}

.tff-detail-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--win-gray-dark);
}

.tff-btn-play-large {
  font-size: 12px;
  font-weight: 900;
  padding: 5px 16px;
  background: #000080;
  color: #ffffff;
}

.tff-btn-large {
  font-size: 11px;
  font-weight: bold;
  padding: 4px 12px;
}

/* --- Detail Info & Synopsis Section --- */
.tff-detail-info-section {
  padding: 12px 14px;
  background: var(--win-gray);
}

.tff-detail-grid-2col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
}

.tff-detail-section-heading {
  font-size: 13px;
  font-weight: bold;
  color: var(--win-navy);
  margin-bottom: 6px;
  border-bottom: 1px solid var(--win-gray-dark);
  padding-bottom: 3px;
}

.tff-detail-synopsis-text {
  font-size: 12px;
  line-height: 1.5;
  color: #111111;
  user-select: text;
  -webkit-user-select: text;
  margin-bottom: 8px;
}

.tff-detail-tags-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tff-detail-meta-col-box {
  padding: 8px 10px;
  background: var(--win-white);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  height: fit-content;
}

.tff-detail-meta-row {
  display: flex;
  gap: 6px;
  line-height: 1.35;
}

.meta-k {
  font-weight: bold;
  color: var(--win-gray-darker);
  min-width: 90px;
}

.meta-v {
  color: #000000;
  flex: 1;
}

/* --- Trailers & Bonus Material Spotlight (Main Spotlight!) --- */
.tff-extras-spotlight-section {
  padding: 14px 16px;
  background: #dcd8d0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 2px solid var(--win-white);
}

.tff-section-header-spotlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--win-navy);
  padding-bottom: 5px;
  flex-wrap: wrap;
  gap: 6px;
}

.tff-spotlight-title-group {
  display: flex;
  flex-direction: column;
}

.tff-spotlight-sub {
  font-size: 10px;
  color: var(--win-gray-darker);
}

.tff-spotlight-counter {
  background: var(--win-navy);
  color: #00ffcc;
  font-family: var(--win-mono-font);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
}

.tff-spotlight-trailers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.tff-spotlight-trailer-card {
  background: var(--win-white);
  border: 2px solid var(--win-gray-dark);
  box-shadow: 2px 2px 0 var(--win-black), inset 1px 1px 0 var(--win-white);
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.tff-spotlight-trailer-card:hover {
  transform: translateY(-2px);
  border-color: var(--win-navy);
  box-shadow: 3px 3px 0 var(--win-navy), inset 1px 1px 0 var(--win-white);
  background: #f0f6ff;
}

.tff-spotlight-thumb {
  width: 100%;
  height: 120px;
  background: #000000;
  border: 1px solid var(--win-gray-darker);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tff-spotlight-thumb-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%);
  background-size: 100% 3px;
  pointer-events: none;
  z-index: 2;
}

.tff-spotlight-thumb-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 8px;
  font-weight: bold;
  background: rgba(0, 0, 128, 0.9);
  color: #ffffff;
  padding: 2px 6px;
  border: 1px solid #66a3ff;
  text-transform: uppercase;
  z-index: 3;
}

.tff-spotlight-thumb-runtime {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 9px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.85);
  color: #00ff66;
  padding: 1px 5px;
  font-family: var(--win-mono-font);
  z-index: 3;
}

.tff-spotlight-thumb-icon {
  font-size: 36px;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.5));
}

.tff-spotlight-play-overlay {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  padding-left: 3px;
  z-index: 4;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tff-spotlight-trailer-card:hover .tff-spotlight-play-overlay {
  transform: scale(1.15);
  background: rgba(0, 0, 128, 0.9);
  border-color: #00ffff;
  color: #00ffff;
}

.tff-spotlight-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.tff-spotlight-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tff-spotlight-title {
  font-size: 12px;
  font-weight: bold;
  color: #000000;
}

.tff-spotlight-desc {
  font-size: 10px;
  color: #444444;
  line-height: 1.35;
  min-height: 28px;
}

.tff-spotlight-play-btn {
  align-self: flex-start;
  font-weight: bold;
  font-size: 10px;
  padding: 3px 10px;
  margin-top: 2px;
}

/* --- Recommendations (More Like This) --- */
.tff-recom-section {
  padding: 12px 14px;
  background: var(--win-gray);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tff-more-like-this-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

/* --- Detail Footer --- */
.tff-detail-footer {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  background: var(--win-gray-light);
  margin-top: 6px;
  flex-wrap: wrap;
  gap: 6px;
}

.tff-footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===========================
   MOBILE RESPONSIVE (max-width: 768px)
   =========================== */
@media (max-width: 768px) {
  .top-left-icon {
    top: 10px;
    left: 10px;
  }

  #icon-backtff {
    top: 80px !important;
    left: 10px !important;
  }

  .center-icons-cluster {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .desktop-icon {
    width: 80px;
  }

  .icon-img-wrapper {
    width: 44px;
    height: 44px;
  }

  .icon-img-wrapper svg,
  .icon-img-wrapper img {
    width: 40px;
    height: 40px;
  }

  .icon-title {
    font-size: 10px;
  }

  .win98-window {
    min-width: 0 !important;
  }

  #win-trailer {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 34px) !important;
  }

  #win-about {
    top: 10px !important;
    left: 2.5vw !important;
    width: 95vw !important;
    height: calc(100vh - 54px) !important;
  }

  #win-trinitas {
    top: 10px !important;
    left: 2.5vw !important;
    width: 95vw !important;
    height: calc(100vh - 54px) !important;
  }

  .tff-detail-grid-2col {
    grid-template-columns: 1fr;
  }

  .win98-error-dialog {
    width: 90vw !important;
    left: 5vw !important;
  }

  .error-body-container {
    padding: 8px 10px;
    gap: 10px;
  }

  .error-icon-graphic {
    width: 28px;
    height: 28px;
  }

  .error-text-content {
    font-size: 10px;
  }

  .error-button-row {
    padding: 6px 10px 10px;
  }

  .start-menu {
    width: 200px;
  }

  .start-menu-sidebar {
    width: 24px;
  }

  .start-menu-banner-text {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .start-menu-item {
    padding: 4px 8px;
    font-size: 10px;
  }

  .start-menu-item svg,
  .start-menu-item img {
    width: 16px;
    height: 16px;
  }

  .taskbar-task-btn {
    min-width: 100px;
    max-width: 140px;
    font-size: 10px;
    padding: 0 4px;
  }

  .system-tray {
    padding: 0 4px;
    gap: 4px;
  }

  #systemClock {
    font-size: 10px !important;
  }

  .window-titlebar {
    height: 20px;
    padding: 1px 3px 1px 4px;
  }

  .titlebar-text {
    font-size: 10px;
  }

  .win-ctrl-btn {
    width: 14px;
    height: 13px;
  }

  .window-menubar {
    height: 18px;
    font-size: 10px;
  }

  .window-statusbar {
    height: 18px;
  }

  .status-panel {
    font-size: 9px;
  }

  .window-body {
    padding: 4px;
  }

  .about-tabs {
    flex-wrap: wrap;
  }

  .about-tab {
    padding: 2px 8px;
    font-size: 10px;
  }

  .tab-content-box {
    padding: 8px;
  }

  .system-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .system-logo {
    width: 48px;
    height: 48px;
  }

  .system-details-grid {
    grid-template-columns: 80px 1fr;
    font-size: 10px;
  }
}

/* ===========================
   MOBILE SMALL (max-width: 480px)
   =========================== */
@media (max-width: 480px) {
  .center-icons-cluster {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #icon-backtff {
    top: 70px !important;
  }

  .desktop-icon {
    width: 72px;
  }

  .icon-img-wrapper {
    width: 38px;
    height: 38px;
  }

  .icon-img-wrapper svg,
  .icon-img-wrapper img {
    width: 34px;
    height: 34px;
  }

  .icon-title {
    font-size: 9px;
    max-width: 70px;
  }

  .start-btn {
    font-size: 10px;
    padding: 2px 4px;
  }

  .start-logo {
    width: 14px;
    height: 14px;
  }

  .start-menu {
    width: 180px;
  }

  .taskbar-task-btn {
    min-width: 80px;
    max-width: 110px;
    font-size: 9px;
  }
}