/* ==========================================================================
   MADE WITH FLASH: MINIMALIST VIDEO SHOWCASE
   Solid clean background, understated gallery of edits and visual effects.
   ========================================================================== */

:root {
  --mwf-bg: #090a0e;
  --mwf-surface: #101217;
  --mwf-card-bg: #12141a;
  --mwf-border: rgba(255, 255, 255, 0.08);
  --mwf-border-hover: rgba(255, 255, 255, 0.22);
  --mwf-text: #f0f2f5;
  --mwf-text-muted: #8b929e;
  --mwf-accent: #38bdf8;
  --mwf-radius: 12px;
}

/* Page canvas - GUARANTEED SOLID BACKGROUND (NO GRADIENTS, NO PATTERNS, NO STARS) */
html,
html body,
body.mwf-page,
html body.mwf-page,
html[data-theme="dark"] body.mwf-page,
html:not([data-theme="bright"]) body.mwf-page,
html[data-theme="bright"] body.mwf-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mwf-bg, #090a0e) !important;
  background-color: var(--mwf-bg, #090a0e) !important;
  background-image: none !important;
  color: var(--mwf-text, #f0f2f5) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  position: relative;
}

/* Strictly disable all legacy celestial starfield/grid pseudo-elements */
html::before,
html::after,
body::before,
body::after,
html body.mwf-page::before,
html body.mwf-page::after,
html:not([data-theme="bright"]) body.mwf-page::before,
html:not([data-theme="bright"]) body.mwf-page::after,
html[data-theme="dark"] body.mwf-page::before,
html[data-theme="dark"] body.mwf-page::after,
html:not([data-theme="bright"]) .mwf-page::before,
html:not([data-theme="bright"]) .mwf-page::after,
html[data-theme="dark"] .mwf-page::before,
html[data-theme="dark"] .mwf-page::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: none !important;
  background-image: none !important;
  pointer-events: none !important;
}

/* Main Container */
.mwf-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  box-sizing: border-box;
  flex: 1 0 auto;
}

/* Hero Section */
.mwf-hero {
  margin-bottom: 44px;
  text-align: center;
}

.mwf-hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.15;
}

.mwf-hero-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--mwf-text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Video Grid */
.mwf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

@media (max-width: 1024px) {
  .mwf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .mwf-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 60px;
  }
}

/* Minimalist Video Card */
.mwf-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--mwf-radius);
  overflow: hidden;
  background-color: var(--mwf-card-bg);
  border: 1px solid var(--mwf-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  outline: none;
  cursor: pointer;
}

.mwf-card:hover {
  transform: translateY(-3px);
  border-color: var(--mwf-border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.mwf-card:focus-visible {
  border-color: var(--mwf-accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3), 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Video Viewport */
.mwf-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.mwf-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000000;
  pointer-events: none;
}

/* Simple Hover Title Overlay */
.mwf-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.88) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.mwf-card:hover .mwf-overlay,
.mwf-card:focus-visible .mwf-overlay {
  opacity: 1;
  visibility: visible;
}

.mwf-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.mwf-item-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mwf-item-creator {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  flex-shrink: 0;
}

/* When there is no title, show creator prominently on the left */
.mwf-info.is-creator-only {
  justify-content: flex-start;
}

.mwf-info.is-creator-only .mwf-item-creator {
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
}

/* Plugins Used Label */
.mwf-item-plugins {
  margin-top: 5px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.35;
  letter-spacing: 0.01em;
  font-weight: 400;
}

/* Touch / Mobile: Subtle title visible at bottom */
@media (hover: none), (pointer: coarse) {
  .mwf-overlay {
    opacity: 1;
    visibility: visible;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.82) 100%);
    padding: 14px 16px;
  }
}

/* Minimalist Submission Callout */
.mwf-submit {
  text-align: center;
  padding: 44px 20px;
  border-top: 1px solid var(--mwf-border);
  max-width: 540px;
  margin: 0 auto;
}

.mwf-submit h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.mwf-submit p {
  font-size: 0.92rem;
  color: var(--mwf-text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.mwf-submit p strong {
  color: var(--mwf-text);
}

.mwf-submit-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.mwf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--mwf-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mwf-border);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mwf-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.mwf-btn svg {
  flex-shrink: 0;
  opacity: 0.85;
}
