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

    html {
      width: 100%;
      min-height: 100%;
      font-family: Arial, sans-serif;
      color: #87314F;
      background:
        repeating-linear-gradient(
          45deg,
          #ffe6f0 0px,
          #ffe6f0 28px,
          #ffd8e8 28px,
          #ffd8e8 56px
        );
      background-size: auto;
      background-position: 0 0;
      overflow-x: hidden;
    }

    body {
      position: relative;
      width: 100%;
      min-height: 100vh;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      text-align: center;
      padding: clamp(18px, 3vw, 38px) clamp(12px, 3vw, 40px) clamp(28px, 5vw, 70px);
      overflow-x: hidden;
      background: transparent;
    }

    .site-background {
      display: none !important;
    }

    .sticky-countdown-header,
    #progressWrap,
    .copy-button {
      display: none !important;
    }

    .arrival-header {
      width: 100%;
      display: flex;
      justify-content: center;
    }

    .arrival-title-wrap {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(7px, 1vw, 13px);
      padding: clamp(9px, 1.3vw, 15px) clamp(18px, 3vw, 34px);
      border: 2px solid rgba(255, 255, 255, 0.88);
      border-radius: clamp(18px, 2vw, 28px);
      background:
        radial-gradient(circle at 16% 26%, rgba(255, 255, 255, 0.96), transparent 30%),
        radial-gradient(circle at 84% 70%, rgba(255, 190, 215, 0.52), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 224, 238, 0.72));
      box-shadow:
        0 14px 36px rgba(143, 45, 82, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }

    .arrival-heart {
      color: rgba(135, 49, 79, 0.34);
      font-size: clamp(1rem, 2.3vw, 2rem);
      font-weight: 900;
      line-height: 1;
      text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
      user-select: none;
    }

    .arrival-title {
      min-width: 0;
      color: #87314F;
      font-size: clamp(1.28rem, 4vw, 2.9rem);
      font-weight: 950;
      line-height: 1;
      letter-spacing: 0;
      text-align: center;
      text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.78),
        0 9px 20px rgba(135, 49, 79, 0.15);
    }

    .sticky-countdown-header {
      position: fixed;
      top: clamp(10px, 1.7vw, 18px);
      left: 50%;
      transform: translateX(-50%);
      z-index: 200;
      width: min(1200px, calc(100% - clamp(18px, 4vw, 52px)));
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: clamp(8px, 1.3vw, 18px);
      padding: clamp(8px, 1.1vw, 13px);
      border: 2px solid rgba(255, 255, 255, 0.88);
      border-radius: clamp(16px, 2vw, 26px);
      background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.95), transparent 24%),
        radial-gradient(circle at 88% 78%, rgba(255, 190, 215, 0.62), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 224, 238, 0.68));
      box-shadow:
        0 14px 38px rgba(143, 45, 82, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      overflow: hidden;
    }

    .sticky-countdown-header::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(
          90deg,
          transparent 0%,
          rgba(255, 255, 255, 0.42) 45%,
          transparent 72%
        );
      opacity: 0.44;
      pointer-events: none;
    }

    .sticky-title-wrap {
      position: relative;
      z-index: 2;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: clamp(6px, 0.9vw, 12px);
      padding-left: clamp(4px, 0.8vw, 10px);
    }

    .sticky-heart {
      color: rgba(135, 49, 79, 0.24);
      font-size: clamp(1rem, 2vw, 2rem);
      font-weight: 900;
      line-height: 1;
      flex: 0 0 auto;
      text-shadow: 0 2px 0 rgba(255, 255, 255, 0.65);
      user-select: none;
    }

    .sticky-title {
      min-width: 0;
      color: #87314F;
      font-size: clamp(0.92rem, 2.2vw, 2.05rem);
      font-weight: 950;
      line-height: 1;
      letter-spacing: -0.045em;
      white-space: nowrap;
      overflow: visible;
      text-align: left;
      text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.78),
        0 8px 18px rgba(135, 49, 79, 0.16);
    }

    .extra-countdown-badge {
      position: absolute;
      left: clamp(-6px, -0.5vw, -2px);
      top: clamp(-5px, -0.45vw, -2px);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: max-content;
      padding: clamp(3px, 0.42vw, 6px) clamp(8px, 0.85vw, 12px);
      border: 2px solid rgba(255, 255, 255, 0.9);
      border-radius: 999px;
      background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.88), transparent 34%),
        linear-gradient(135deg, rgba(255, 177, 100, 0.9), rgba(255, 96, 165, 0.82), rgba(154, 112, 255, 0.72));
      color: rgba(255, 255, 255, 0.94);
      font-size: clamp(0.58rem, 1.25vw, 1.06rem);
      font-weight: 950;
      line-height: 1;
      letter-spacing: -0.04em;
      text-shadow:
        0 1px 0 rgba(100, 35, 60, 0.48),
        0 0 12px rgba(255, 255, 255, 0.5);
      box-shadow:
        0 9px 22px rgba(143, 45, 82, 0.2),
        0 0 22px rgba(255, 106, 169, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
      transform: rotate(-9deg);
      opacity: 0.86;
      user-select: none;
      pointer-events: none;
      z-index: 1;
    }

    .sticky-countdown {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: repeat(4, clamp(50px, 8.8vw, 96px));
      gap: clamp(4px, 0.75vw, 9px);
      align-items: stretch;
      justify-content: end;
    }

    .header-box {
      position: relative;
      min-width: 0;
      overflow: visible;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: clamp(1px, 0.2vw, 3px);
      padding: clamp(5px, 0.7vw, 8px) clamp(3px, 0.55vw, 7px);
      border: 2px solid rgba(255, 255, 255, 0.75);
      border-radius: clamp(10px, 1.25vw, 16px);
      background: rgba(255, 255, 255, 0.46);
      box-shadow:
        0 8px 20px rgba(143, 45, 82, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    .header-number {
      position: relative;
      z-index: 3;
      width: 100%;
      height: 1.08em;
      overflow: hidden;
      color: #87314F;
      font-size: clamp(1.1rem, 3vw, 2.25rem);
      font-weight: 950;
      line-height: 1;
      white-space: nowrap;
      letter-spacing: -0.04em;
    }

    .header-label {
      position: relative;
      z-index: 3;
      color: rgba(135, 49, 79, 0.78);
      font-size: clamp(0.34rem, 0.82vw, 0.64rem);
      font-weight: 900;
      line-height: 1;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .container {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 1200px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: clamp(13px, 2.8vw, 28px);
      transition: filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: filter;
    }

    body.lightbox-visible .container,
    body.lightbox-visible .copy-button,
    body.lightbox-visible .sticky-countdown-header {
      filter: blur(8px);
    }

    .hero-header {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: clamp(8px, 1.4vw, 14px);
    }

    .top-info-row {
      width: 100%;
      display: grid;
      grid-template-columns: 0.72fr 0.72fr 1.78fr 1.78fr;
      gap: clamp(6px, 1.15vw, 14px);
      align-items: stretch;
    }

    .weather-card {
      --weather-bg: #ffffff;
      --weather-bg-opacity: 0.28;
      position: relative;
      min-width: 0;
      min-height: clamp(54px, 7vw, 82px);
      display: grid;
      grid-template-columns: 1fr auto;
      grid-template-rows: auto 1fr auto;
      align-items: center;
      column-gap: clamp(3px, 0.7vw, 7px);
      overflow: hidden;
      padding: clamp(5px, 0.75vw, 9px) clamp(6px, 0.95vw, 11px);
      border: 2px solid rgba(255, 255, 255, 0.9);
      border-radius: clamp(12px, 2vw, 22px);
      background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.96), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 224, 238, 0.72));
      box-shadow:
        0 12px 32px rgba(143, 45, 82, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
      color: #87314F;
      user-select: none;
    }

    .weather-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--weather-bg);
      opacity: var(--weather-bg-opacity);
      pointer-events: none;
      z-index: 0;
    }

    .weather-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(
          90deg,
          transparent 0%,
          rgba(255, 255, 255, 0.44) 45%,
          transparent 72%
        );
      opacity: 0.38;
      pointer-events: none;
      z-index: 1;
    }

    .weather-crest {
      position: absolute;
      right: clamp(3px, 0.7vw, 8px);
      top: 50%;
      z-index: 1;
      width: auto;
      height: clamp(48px, 6vw, 74px);
      max-width: 48%;
      object-fit: contain;
      opacity: 0.2;
      transform: translateY(-50%) rotate(-4deg);
      pointer-events: none;
      user-select: none;
      filter:
        drop-shadow(0 4px 8px rgba(20, 25, 45, 0.16))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.45));
    }

    .weather-card-zagreb .weather-crest {
      height: clamp(50px, 6.5vw, 78px);
      opacity: 0.18;
      right: clamp(2px, 0.45vw, 6px);
    }

    .weather-card-zapresic .weather-crest {
      opacity: 0.24;
      filter:
        drop-shadow(0 4px 8px rgba(2, 55, 105, 0.16))
        drop-shadow(0 0 12px rgba(2, 115, 180, 0.2));
    }

    .weather-name {
      position: relative;
      z-index: 2;
      grid-column: 1 / 3;
      font-size: clamp(0.42rem, 0.82vw, 0.72rem);
      font-weight: 900;
      line-height: 1;
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
    }

    .weather-temp {
      position: relative;
      z-index: 2;
      font-size: clamp(1.05rem, 2.1vw, 1.85rem);
      font-weight: 900;
      line-height: 1;
      text-align: left;
      letter-spacing: -0.04em;
      text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.75),
        0 8px 20px rgba(135, 49, 79, 0.14);
    }

    .weather-icon {
      position: relative;
      z-index: 2;
      font-size: clamp(1rem, 2.05vw, 1.7rem);
      line-height: 1;
      text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.96),
         1px -1px 0 rgba(255, 255, 255, 0.96),
        -1px  1px 0 rgba(255, 255, 255, 0.96),
         1px  1px 0 rgba(255, 255, 255, 0.96),
         0 0 8px rgba(135, 49, 79, 0.28),
         0 3px 5px rgba(135, 49, 79, 0.22);
      filter:
        drop-shadow(-1px -1px 0 rgba(255, 255, 255, 0.95))
        drop-shadow(1px -1px 0 rgba(255, 255, 255, 0.95))
        drop-shadow(-1px 1px 0 rgba(255, 255, 255, 0.95))
        drop-shadow(1px 1px 0 rgba(255, 255, 255, 0.95))
        drop-shadow(0 3px 5px rgba(135, 49, 79, 0.16));
    }

    .weather-status {
      position: relative;
      z-index: 2;
      grid-column: 1 / 3;
      font-size: clamp(0.34rem, 0.7vw, 0.56rem);
      font-weight: 800;
      line-height: 1;
      text-align: left;
      color: rgba(135, 49, 79, 0.78);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 1px;
    }

    .ow-card {
      position: relative;
      min-width: 0;
      min-height: clamp(54px, 7vw, 82px);
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      column-gap: clamp(7px, 1vw, 13px);
      padding: clamp(5px, 0.8vw, 9px) clamp(10px, 1.3vw, 18px) clamp(5px, 0.8vw, 9px) clamp(7px, 1vw, 12px);
      border-radius: 999px;
      border: 2px solid rgba(213, 250, 255, 0.7);
      overflow: hidden;
      isolation: isolate;
      color: white;
      box-shadow:
        0 0 18px rgba(0, 224, 255, 0.42),
        0 10px 32px rgba(58, 0, 92, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.38);
      background:
        linear-gradient(90deg, rgba(31, 255, 255, 0.16), rgba(255, 0, 210, 0.2)),
        linear-gradient(90deg, #181427 0%, #122f5a 24%, #17b9ee 48%, #b217ff 78%, #ff1ecb 100%);
    }

    .ow-card::before {
      content: "";
      position: absolute;
      inset: 6px;
      border-radius: 999px;
      background:
        linear-gradient(105deg, rgba(15, 18, 42, 0.92) 0%, rgba(17, 100, 160, 0.78) 34%, rgba(52, 218, 255, 0.65) 54%, rgba(76, 20, 140, 0.44) 76%, rgba(255, 30, 203, 0.5) 100%);
      z-index: -1;
    }

    .ow-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 10% 50%, rgba(28, 247, 255, 0.9), transparent 18%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.45) 34%, transparent 50%);
      opacity: 0.32;
      pointer-events: none;
      z-index: -1;
    }

    .ow-card.ow-card-easter {
      animation: owCardEasterPulse 0.72s ease-in-out 4;
    }

    .ow-card.ow-card-easter::after {
      opacity: 0.68;
      animation: owCardEasterSweep 0.72s ease-in-out 4;
    }

    @keyframes owCardEasterPulse {
      0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow:
          0 0 18px rgba(0, 224, 255, 0.42),
          0 10px 32px rgba(58, 0, 92, 0.28),
          inset 0 1px 0 rgba(255, 255, 255, 0.38);
      }

      50% {
        transform: translateY(-1px) scale(1.018);
        box-shadow:
          0 0 26px rgba(0, 224, 255, 0.7),
          0 0 34px rgba(255, 30, 203, 0.42),
          0 14px 36px rgba(58, 0, 92, 0.32),
          inset 0 1px 0 rgba(255, 255, 255, 0.54);
      }
    }

    @keyframes owCardEasterSweep {
      0%, 100% {
        transform: translateX(-22%);
      }

      50% {
        transform: translateX(18%);
      }
    }

    .ow-badge {
      position: relative;
      width: clamp(40px, 5.5vw, 64px);
      height: clamp(40px, 5.5vw, 64px);
      border-radius: 50%;
      flex: 0 0 auto;
      background: transparent;
      border: none;
      box-shadow:
        0 0 15px rgba(20, 236, 255, 0.65),
        0 0 26px rgba(255, 30, 203, 0.28);
      overflow: hidden;
    }

    .ow-badge img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .ow-lines {
      min-width: 0;
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: clamp(2px, 0.25vw, 4px);
    }

    .ow-name {
      width: 100%;
      font-size: clamp(0.68rem, 1.3vw, 1.12rem);
      font-weight: 950;
      font-style: italic;
      line-height: 1;
      color: #ffffff;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-shadow:
        2px 2px 0 rgba(19, 30, 75, 0.95),
        0 0 12px rgba(41, 232, 255, 0.75);
    }

    .ow-rank {
      width: 100%;
      font-size: clamp(0.48rem, 0.9vw, 0.78rem);
      font-weight: 900;
      line-height: 1;
      color: #d6fbff;
      text-align: left;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-shadow:
        1px 1px 0 rgba(22, 22, 60, 0.95),
        0 0 10px rgba(255, 29, 206, 0.55);
    }

    .rank-pro {
      color: #777DF4;
      text-shadow:
        1px 1px 0 rgba(22, 22, 60, 0.95),
        0 0 12px rgba(119, 125, 244, 0.9),
        0 0 18px rgba(119, 125, 244, 0.5);
    }

    .rank-allstar {
      color: #8AE85F;
      text-shadow:
        1px 1px 0 rgba(22, 22, 60, 0.95),
        0 0 12px rgba(138, 232, 95, 0.9),
        0 0 18px rgba(138, 232, 95, 0.5);
    }

    .countdown-wrap {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: clamp(18px, 3vw, 32px);
    }

    .number-digits {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 1.08em;
      line-height: 1;
      gap: 0.01em;
    }

    .digit {
      position: relative;
      display: inline-block;
      width: 0.72em;
      height: 1.08em;
      line-height: 1;
      overflow: hidden;
      text-align: center;
      flex: 0 0 0.72em;
    }

    .digit-static {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 1.08em;
      line-height: 1;
      text-align: center;
    }

    .digit-old,
    .digit-new {
      position: absolute;
      left: 0;
      right: 0;
      height: 1.08em;
      line-height: 1;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .digit-old {
      top: 0;
      animation: oldDigitUp 0.38s ease-in forwards;
    }

    .digit-new {
      top: 0;
      animation: newDigitUp 0.38s ease-out forwards;
    }

    @keyframes oldDigitUp {
      from {
        transform: translateY(0);
        opacity: 1;
      }

      to {
        transform: translateY(-105%);
        opacity: 0;
      }
    }

    @keyframes newDigitUp {
      from {
        transform: translateY(105%);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .leading-zero {
      color: #AF7C8E;
    }

    .progress-wrap {
      width: 100%;
      display: flex;
      align-items: center;
      gap: clamp(6px, 1.5vw, 14px);
      margin-bottom: clamp(14px, 2.4vw, 28px);
    }

    .flag {
      height: clamp(18px, 4vw, 34px);
      width: clamp(30px, 6vw, 56px);
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      overflow: hidden;
      border-radius: clamp(3px, 0.8vw, 6px);
      border: 2px solid rgba(255, 255, 255, 0.85);
      box-shadow: 0 10px 30px rgba(143, 45, 82, 0.15);
      background: rgba(255, 255, 255, 0.55);
    }

    .flag img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .progress-bar {
      position: relative;
      flex: 1;
      height: clamp(18px, 4vw, 34px);
      background: rgba(255, 255, 255, 0.55);
      border: 2px solid rgba(255, 255, 255, 0.85);
      border-radius: 999px;
      box-shadow: 0 10px 30px rgba(143, 45, 82, 0.15);
      overflow: visible;
      touch-action: none;
    }

    .progress-fill {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 0%;
      background:
        repeating-linear-gradient(
          45deg,
          rgba(255, 126, 176, 0.95) 0px,
          rgba(255, 126, 176, 0.95) 12px,
          rgba(255, 182, 210, 0.95) 12px,
          rgba(255, 182, 210, 0.95) 24px
        );
      background-size: 34px 34px;
      background-position: 0 0;
      border-radius: 999px;
      transition: width 0.25s ease;
      animation: progressStripesMove 2.2s linear infinite;
      z-index: 1;
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        inset 0 0 14px rgba(135, 49, 79, 0.08);
      overflow: hidden;
    }

    @keyframes progressStripesMove {
      from {
        background-position: 0 0;
      }

      to {
        background-position: 34px 0;
      }
    }

    .extra-time-segment {
      position: absolute;
      top: 0;
      height: 100%;
      left: 89.2857%;
      width: 10.7143%;
      border-radius: 0 999px 999px 0;
      background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 34%),
        repeating-linear-gradient(135deg, rgba(255, 112, 164, 0.62) 0px, rgba(255, 112, 164, 0.62) 8px, rgba(255, 184, 92, 0.66) 8px, rgba(255, 184, 92, 0.66) 16px),
        linear-gradient(135deg, rgba(255, 99, 170, 0.7), rgba(150, 118, 255, 0.62));
      box-shadow:
        inset 8px 0 18px rgba(135, 49, 79, 0.1),
        0 0 22px rgba(255, 106, 169, 0.16);
      pointer-events: none;
      overflow: visible;
      z-index: 2;
    }

    .extra-time-segment::before {
      content: "";
      position: absolute;
      left: 0;
      top: -5px;
      bottom: -5px;
      width: 3px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow:
        0 0 0 2px rgba(135, 49, 79, 0.16),
        0 0 18px rgba(255, 255, 255, 0.86);
    }

    .extra-time-badge {
      position: absolute;
      right: clamp(3px, 0.7vw, 8px);
      top: calc(50% - clamp(33px, 5.8vw, 50px));
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: max-content;
      padding: clamp(2px, 0.38vw, 5px) clamp(6px, 0.85vw, 10px);
      border: 2px solid rgba(255, 255, 255, 0.96);
      border-radius: 999px;
      background:
        radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.96), transparent 34%),
        linear-gradient(135deg, rgba(255, 177, 100, 0.96), rgba(255, 93, 165, 0.88), rgba(154, 112, 255, 0.72));
      color: white;
      font-size: clamp(0.48rem, 1.05vw, 0.82rem);
      font-weight: 950;
      line-height: 1;
      text-shadow: 0 1px 0 rgba(103, 35, 73, 0.52);
      box-shadow:
        0 10px 24px rgba(143, 45, 82, 0.22),
        0 0 18px rgba(255, 106, 169, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
      transform: rotate(-3deg);
      z-index: 6;
    }

    .original-finish-marker {
      position: absolute;
      left: 89.2857%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: clamp(18px, 3.1vw, 30px);
      height: clamp(18px, 3.1vw, 30px);
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid rgba(255, 255, 255, 0.94);
      border-radius: 50%;
      background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.98), rgba(255, 222, 235, 0.88) 52%, rgba(255, 119, 176, 0.78));
      color: #87314F;
      font-size: clamp(0.55rem, 1.45vw, 1rem);
      font-weight: 950;
      line-height: 1;
      box-shadow:
        0 8px 22px rgba(143, 45, 82, 0.22),
        0 0 0 5px rgba(255, 255, 255, 0.24);
      pointer-events: none;
      user-select: none;
      z-index: 4;
    }

    .original-finish-marker span {
      transform: translateY(-1px);
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .car {
      position: absolute;
      top: 50%;
      left: 0%;
      height: clamp(32px, 7vw, 64px);
      width: auto;
      transform: translate(-50%, -55%);
      transform-origin: 50% 65%;
      transition: left 0.25s ease;
      animation: carDriveShake 0.63s ease-in-out infinite;
      z-index: 5;
      filter: drop-shadow(0 5px 8px rgba(135, 49, 79, 0.25));
      pointer-events: auto;
      cursor: grab;
      user-select: none;
      -webkit-user-drag: none;
    }

    .car:active {
      cursor: grabbing;
    }

    .distance-label {
      position: absolute;
      top: calc(50% + clamp(17px, 3.8vw, 36px));
      left: 0%;
      transform: translateX(-50%);
      z-index: 4;
      min-width: max-content;
      padding: clamp(2px, 0.45vw, 5px) clamp(5px, 0.9vw, 10px);
      border: 2px solid rgba(255, 255, 255, 0.9);
      border-radius: clamp(7px, 1vw, 12px);
      background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.95), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 224, 238, 0.68));
      box-shadow:
        0 8px 20px rgba(143, 45, 82, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
      color: #87314F;
      font-size: clamp(0.55rem, 1.35vw, 0.98rem);
      font-weight: 900;
      line-height: 1;
      white-space: nowrap;
      letter-spacing: 0.02em;
      text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.95),
         1px -1px 0 rgba(255, 255, 255, 0.95),
        -1px  1px 0 rgba(255, 255, 255, 0.95),
         1px  1px 0 rgba(255, 255, 255, 0.95),
         0 4px 10px rgba(135, 49, 79, 0.16);
      transition: left 0.25s ease;
      pointer-events: none;
      user-select: none;
    }

    .km-unit {
      color: #C58DA1;
    }

    .ghost-car {
      position: absolute;
      top: 50%;
      left: 0%;
      height: clamp(32px, 7vw, 64px);
      width: auto;
      transform: translate(-50%, -55%);
      z-index: 5;
      opacity: 0;
      filter: grayscale(1) contrast(1.08) drop-shadow(0 5px 8px rgba(0, 0, 0, 0.18));
      pointer-events: none;
      user-select: none;
      -webkit-user-drag: none;
      transition:
        left 0.09s ease-out,
        opacity 0.11s ease-out,
        transform 0.11s ease-out;
    }

    .ghost-car.active {
      opacity: 0.58;
    }

    .ghost-car.fading {
      opacity: 0;
      transform: translate(-50%, -55%) scale(0.96);
    }

    .ghost-car.no-motion {
      transition:
        opacity 0.11s ease-out,
        transform 0.11s ease-out;
    }

    .ghost-bubble {
      position: absolute;
      top: calc(50% + clamp(17px, 3.8vw, 36px));
      left: 0%;
      transform: translateX(-50%);
      z-index: 6;
      min-width: max-content;
      display: flex;
      flex-direction: column;
      gap: clamp(2px, 0.3vw, 4px);
      padding: clamp(4px, 0.65vw, 7px) clamp(6px, 1vw, 11px);
      border: 2px solid rgba(255, 255, 255, 0.92);
      border-radius: clamp(8px, 1vw, 13px);
      background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.96), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(212, 212, 212, 0.74));
      box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
      color: #2f2f2f;
      font-size: clamp(0.52rem, 1.25vw, 0.9rem);
      font-weight: 900;
      line-height: 1.05;
      white-space: nowrap;
      letter-spacing: 0.02em;
      text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.95),
         1px -1px 0 rgba(255, 255, 255, 0.95),
        -1px  1px 0 rgba(255, 255, 255, 0.95),
         1px  1px 0 rgba(255, 255, 255, 0.95),
         0 4px 10px rgba(0, 0, 0, 0.1);
      opacity: 0;
      pointer-events: none;
      user-select: none;
      transition:
        left 0.09s ease-out,
        opacity 0.11s ease-out,
        transform 0.11s ease-out;
    }

    .ghost-bubble.active {
      opacity: 1;
    }

    .ghost-bubble.fading {
      opacity: 0;
      transform: translateX(-50%) scale(0.96);
    }

    .ghost-bubble.no-motion {
      transition:
        opacity 0.11s ease-out,
        transform 0.11s ease-out;
    }

    .ghost-time-unit {
      color: #777777;
      font-weight: 900;
    }

    .ghost-km-unit {
      color: #8a8a8a;
      font-weight: 900;
    }

    @keyframes carDriveShake {
      0%, 100% {
        transform: translate(-50%, -55%) rotate(-1deg) translateY(0px);
      }

      25% {
        transform: translate(-50%, -57%) rotate(1.4deg) translateY(-1px);
      }

      50% {
        transform: translate(-50%, -54%) rotate(-0.8deg) translateY(1px);
      }

      75% {
        transform: translate(-50%, -56%) rotate(1deg) translateY(-0.5px);
      }
    }

    .challenge-list {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: clamp(8px, 1.5vw, 14px);
      margin-top: clamp(4px, 1vw, 10px);
    }

    .challenge-row {
      width: 100%;
      display: grid;
      grid-template-columns: 0.34fr 1fr;
      gap: clamp(6px, 1.5vw, 14px);
      align-items: stretch;
      background: rgba(112, 82, 97, 0.16);
      border-radius: clamp(10px, 1.7vw, 18px);
    }

    .challenge-left {
      min-width: 0;
      display: grid;
      grid-template-rows: auto 1fr;
      overflow: hidden;
      border: 2px solid rgba(255, 255, 255, 0.85);
      border-radius: clamp(10px, 1.7vw, 18px);
      box-shadow: 0 10px 30px rgba(143, 45, 82, 0.13);
      background: rgba(255, 255, 255, 0.48);
    }

    .challenge-date {
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: clamp(1px, 0.25vw, 3px);
      padding: clamp(3px, 0.55vw, 5px) clamp(4px, 0.8vw, 8px);
      background: rgba(255, 255, 255, 0.62);
      border-bottom: 2px solid rgba(255, 255, 255, 0.85);
      color: #87314F;
      font-size: clamp(0.48rem, 0.95vw, 0.85rem);
      font-weight: 900;
      line-height: 1;
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
      white-space: nowrap;
      border-radius: 0;
    }

    .challenge-date-small {
      display: block;
      font-size: 0.72em;
      opacity: 0.82;
      letter-spacing: 0.06em;
    }

    .challenge-name {
      min-width: 0;
      min-height: clamp(43px, 5.25vw, 65px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: clamp(2px, 0.35vw, 5px);
      padding: clamp(6px, 1.1vw, 11px);
      background-image: linear-gradient(rgba(135, 49, 79, 0.28), rgba(135, 49, 79, 0.28)), url("https://i.imgur.com/zthYmBo.png");
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      color: #fff4f8;
      font-size: clamp(0.7rem, 1.55vw, 1.35rem);
      font-weight: 900;
      letter-spacing: 0.3px;
      line-height: 1.1;
      text-shadow:
        -1px -1px 0 rgba(135, 49, 79, 0.95),
         1px -1px 0 rgba(135, 49, 79, 0.95),
        -1px  1px 0 rgba(135, 49, 79, 0.95),
         1px  1px 0 rgba(135, 49, 79, 0.95),
         0 4px 12px rgba(70, 20, 40, 0.35);
      white-space: normal;
    }

    .challenge-name-small {
      display: block;
      font-size: 0.62em;
      line-height: 1;
      opacity: 0.92;
      letter-spacing: 0.04em;
      margin-top: clamp(1px, 0.25vw, 4px);
    }

    .challenge-description {
      min-width: 0;
      min-height: clamp(61px, 6.75vw, 93px);
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: clamp(8px, 1.5vw, 14px);
      background: rgba(255, 255, 255, 0.48);
      border: 2px solid rgba(255, 255, 255, 0.85);
      border-radius: clamp(10px, 1.7vw, 18px);
      box-shadow: 0 10px 30px rgba(143, 45, 82, 0.13);
      color: #87314F;
      text-align: left;
      font-size: clamp(0.72rem, 1.55vw, 1.18rem);
      font-weight: 800;
      line-height: 1.22;
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
      overflow: hidden;
    }

    .challenge-description-text {
      display: block;
      width: 100%;
    }

    .picture-day-row {
      min-height: clamp(90px, 15vw, 175px);
      background: transparent;
    }

    .picture-day-left {
      min-height: clamp(61px, 6.75vw, 93px);
      height: auto;
      align-self: start;
    }

    .picture-day-name {
      position: relative;
      background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.74), transparent 24%),
        radial-gradient(circle at 86% 72%, rgba(255, 255, 255, 0.34), transparent 28%),
        linear-gradient(135deg, rgba(255, 115, 174, 0.9), rgba(255, 176, 214, 0.82) 58%, rgba(255, 134, 190, 0.88));
      min-height: clamp(30px, 3.7vw, 46px);
      height: auto;
      padding: clamp(4px, 0.62vw, 7px) clamp(7px, 1vw, 12px);
      isolation: isolate;
      overflow: hidden;
    }

    .picture-day-name::before,
    .picture-day-name::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 0;
    }

    .picture-day-name::before {
      background:
        radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 2px, transparent 3.2px) 13% 28% / 38px 30px,
        radial-gradient(circle, rgba(255, 244, 248, 0.8) 0 1.4px, transparent 2.7px) 78% 58% / 50px 34px,
        radial-gradient(circle, rgba(255, 255, 255, 0.66) 0 1.5px, transparent 2.8px) 45% 72% / 42px 36px;
      opacity: 0.7;
      mix-blend-mode: screen;
      animation: pictureDaySparkle 6.2s ease-in-out infinite alternate;
    }

    .picture-day-name::after {
      width: 50%;
      background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.18) 39%, rgba(255, 255, 255, 0.48) 50%, rgba(255, 255, 255, 0.16) 61%, transparent 100%);
      filter: blur(0.5px);
      transform: translateX(-135%) skewX(-16deg);
      animation: pictureDaySheen 8s ease-in-out infinite;
    }

    .challenge-name-title {
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: clamp(4px, 0.58vw, 8px);
      min-width: 0;
    }

    .picture-day-icon-chip {
      width: clamp(20px, 2.45vw, 32px);
      height: clamp(20px, 2.45vw, 32px);
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 2px solid rgba(255, 255, 255, 0.78);
      border-radius: 999px;
      background:
        radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.56) 42%, rgba(255, 217, 234, 0.5));
      box-shadow:
        0 6px 15px rgba(135, 49, 79, 0.19),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .picture-day-icon {
      width: 68%;
      height: 68%;
      display: block;
      filter:
        drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7))
        drop-shadow(0 4px 8px rgba(70, 20, 40, 0.18));
    }

    @keyframes pictureDaySparkle {
      from {
        opacity: 0.4;
        transform: translate3d(-4px, 1px, 0) scale(0.98);
      }

      to {
        opacity: 0.78;
        transform: translate3d(5px, -1px, 0) scale(1.02);
      }
    }

    @keyframes pictureDaySheen {
      0%, 26% {
        transform: translateX(-135%) skewX(-16deg);
        opacity: 0;
      }

      46% {
        opacity: 0.46;
      }

      68%, 100% {
        transform: translateX(235%) skewX(-16deg);
        opacity: 0;
      }
    }

    .result-left {
      height: auto;
      min-height: clamp(76px, 8vw, 112px);
      align-self: start;
    }

    .result-name {
      min-height: clamp(56px, 6.5vw, 88px);
      padding-top: clamp(10px, 1.4vw, 16px);
      padding-bottom: clamp(10px, 1.4vw, 16px);
    }

    .wide-event-row {
      min-height: auto;
      align-items: start;
      background: transparent;
    }

    .wide-event-left {
      min-height: 0;
      align-self: stretch;
    }

    .wide-event-image-box {
      min-height: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(5px, 0.8vw, 9px);
      background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.72), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 224, 238, 0.44));
    }

    .wide-event-left-image {
      width: 100%;
      aspect-ratio: 469 / 185;
      object-fit: contain;
      object-position: center;
      display: block;
      border-radius: clamp(7px, 1vw, 13px);
      cursor: default;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      -webkit-user-drag: none;
      pointer-events: none;
    }

    .wide-image-card {
      min-width: 0;
      width: 100%;
      display: block;
      overflow: hidden;
      border: 2px solid rgba(255, 255, 255, 0.85);
      border-radius: clamp(10px, 1.7vw, 18px);
      box-shadow: 0 10px 30px rgba(143, 45, 82, 0.13);
      background: rgba(255, 255, 255, 0.48);
      transform-origin: top left;
    }

    .wide-image-card.lightbox-source-hidden {
      opacity: 0;
    }

    .wide-image {
      width: 100%;
      aspect-ratio: 469 / 185;
      height: auto;
      display: block;
      object-fit: cover;
      object-position: center;
      cursor: zoom-in;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      -webkit-user-drag: none;
    }

    .wide-image-caption {
      border-top: 2px solid rgba(255, 255, 255, 0.72);
      padding: clamp(8px, 1.35vw, 14px) clamp(10px, 1.7vw, 18px);
      background: rgba(255, 255, 255, 0.42);
      color: #87314F;
      text-align: left;
      font-size: clamp(0.72rem, 1.4vw, 1.02rem);
      font-weight: 800;
      line-height: 1.22;
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    }

    .text-post-row {
      align-items: stretch;
    }

    .text-post-left.has-left-image {
      grid-template-rows: auto 1fr;
      align-self: stretch;
    }

    .text-post-left-image-box {
      min-height: 0;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(5px, 0.8vw, 9px);
      background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.72), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 224, 238, 0.44));
    }

    .text-post-left-image {
      width: 100%;
      aspect-ratio: 469 / 185;
      object-fit: contain;
      object-position: center;
      display: block;
      border-radius: clamp(7px, 1vw, 13px);
      cursor: default;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      -webkit-user-drag: none;
      pointer-events: none;
    }

    .text-post-content-card {
      min-width: 0;
      width: 100%;
      display: grid;
      grid-template-rows: auto 1fr;
      overflow: hidden;
      border: 2px solid rgba(255, 255, 255, 0.85);
      border-radius: clamp(10px, 1.7vw, 18px);
      box-shadow: 0 10px 30px rgba(143, 45, 82, 0.13);
      background: rgba(255, 255, 255, 0.48);
    }

    .text-post-right-title {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(5px, 0.75vw, 8px) clamp(8px, 1.2vw, 14px);
      background: rgba(255, 255, 255, 0.62);
      border-bottom: 2px solid rgba(255, 255, 255, 0.85);
      color: #87314F;
      font-size: clamp(0.56rem, 1.05vw, 0.95rem);
      font-weight: 900;
      line-height: 1;
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .text-post-description {
      min-height: clamp(61px, 6.75vw, 93px);
      height: 100%;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      background: transparent;
    }

    .picture-day-grid {
      min-width: 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(6px, 1.5vw, 14px);
      height: 100%;
      background: rgba(112, 82, 97, 0.16);
      border-radius: clamp(10px, 1.7vw, 18px);
    }

    .person-card {
      min-width: 0;
      display: grid;
      grid-template-rows: auto 1fr;
      overflow: hidden;
      border: 2px solid rgba(255, 255, 255, 0.85);
      border-radius: clamp(10px, 1.7vw, 18px);
      box-shadow: 0 10px 30px rgba(143, 45, 82, 0.13);
      background: rgba(255, 255, 255, 0.48);
      transform-origin: top left;
    }

    .person-card.lightbox-source-hidden {
      opacity: 0;
    }

    .person-title {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(3px, 0.55vw, 5px) clamp(4px, 0.8vw, 8px);
      background: rgba(255, 255, 255, 0.62);
      border-bottom: 2px solid rgba(255, 255, 255, 0.85);
      color: #87314F;
      font-size: clamp(0.48rem, 0.95vw, 0.85rem);
      font-weight: 900;
      line-height: 1;
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
      white-space: nowrap;
      border-radius: 0;
    }

    .person-image {
      width: 100%;
      height: 100%;
      min-height: 0;
      display: block;
      object-fit: cover;
      object-position: center;
      cursor: zoom-in;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      -webkit-user-drag: none;
    }

    .green-word {
      color: #28a745;
      font-weight: 900;
      text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.9),
         1px -1px 0 rgba(255, 255, 255, 0.9),
        -1px  1px 0 rgba(255, 255, 255, 0.9),
         1px  1px 0 rgba(255, 255, 255, 0.9),
         0 3px 8px rgba(40, 167, 69, 0.25);
    }

    .pink-word {
      color: #ff6fae;
      font-weight: 900;
      text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.9),
         1px -1px 0 rgba(255, 255, 255, 0.9),
        -1px  1px 0 rgba(255, 255, 255, 0.9),
         1px  1px 0 rgba(255, 255, 255, 0.9),
         0 3px 8px rgba(255, 111, 174, 0.25);
    }

    .copy-button {
      position: fixed;
      right: clamp(12px, 2.2vw, 26px);
      bottom: clamp(12px, 2.2vw, 26px);
      width: clamp(46px, 6vw, 62px);
      height: clamp(46px, 6vw, 62px);
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid rgba(255, 255, 255, 0.9);
      border-radius: clamp(12px, 1.6vw, 18px);
      background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.96), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 224, 238, 0.72));
      box-shadow:
        0 12px 32px rgba(143, 45, 82, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
      cursor: pointer;
      z-index: 99;
      transition:
        background 0.35s ease,
        transform 0.18s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
      overflow: hidden;
      -webkit-tap-highlight-color: transparent;
      will-change: filter;
    }

    .copy-button::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(
          90deg,
          transparent 0%,
          rgba(255, 255, 255, 0.48) 45%,
          transparent 72%
        );
      opacity: 0.42;
      pointer-events: none;
    }

    .copy-button:hover {
      transform: translateY(-2px);
      box-shadow:
        0 16px 36px rgba(143, 45, 82, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }

    .copy-button:active {
      transform: translateY(1px) scale(0.96);
    }

    .copy-button.copied {
      background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.96), transparent 34%),
        linear-gradient(135deg, rgba(226, 255, 235, 0.92), rgba(76, 207, 116, 0.72));
      border-color: rgba(255, 255, 255, 0.95);
      box-shadow:
        0 14px 34px rgba(40, 167, 69, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    }

    .copy-button img {
      position: relative;
      z-index: 2;
      width: 62%;
      height: 62%;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 4px 8px rgba(135, 49, 79, 0.18));
      pointer-events: none;
      user-select: none;
    }

    .lightbox-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: none;
      opacity: 0;
      background: rgba(35, 13, 24, 0);
      backdrop-filter: blur(0px);
      -webkit-backdrop-filter: blur(0px);
      transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        backdrop-filter 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        -webkit-backdrop-filter 0.72s cubic-bezier(0.22, 1, 0.36, 1);
      cursor: zoom-out;
      touch-action: auto;
    }

    .lightbox-overlay.active {
      display: block;
    }

    .lightbox-overlay.visible {
      opacity: 1;
      background: rgba(35, 13, 24, 0.52);
      backdrop-filter: blur(7px);
      -webkit-backdrop-filter: blur(7px);
    }

    .lightbox-card {
      position: fixed;
      z-index: 10000;
      min-width: 0;
      display: grid;
      grid-template-rows: auto 1fr;
      overflow: hidden;
      cursor: zoom-out;
      will-change: transform, box-shadow;
      user-select: none;
      -webkit-user-drag: none;
      touch-action: auto;
      transform-origin: top left;
      pointer-events: auto;
    }

    .lightbox-card.wide-image-card {
      display: block;
    }

    .lightbox-card .person-image,
    .lightbox-card .wide-image {
      cursor: zoom-out;
    }

    .done {
      font-size: clamp(1rem, 3vw, 2rem);
      font-weight: 950;
      color: #87314F;
      text-shadow: 0 4px 20px rgba(143, 45, 82, 0.18);
      line-height: 1;
      white-space: nowrap;
      text-align: right;
      grid-column: 1 / -1;
      padding: clamp(8px, 1vw, 12px) clamp(12px, 1.6vw, 20px);
    }

    @media (max-width: 700px) {
      body {
        padding-top: 12px;
      }

      .sticky-countdown-header {
        width: calc(100% - 12px);
        top: 6px;
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
        gap: 4px;
        padding: 6px;
        border-radius: 14px;
      }

      .sticky-title-wrap {
        justify-content: flex-start;
        padding-left: 1px;
        gap: 3px;
      }

      .sticky-title {
        text-align: left;
        font-size: clamp(0.47rem, 2.65vw, 0.78rem);
        letter-spacing: -0.055em;
        line-height: 1.02;
        overflow: visible;
        text-overflow: clip;
      }

      .sticky-heart {
        font-size: clamp(0.42rem, 2.2vw, 0.72rem);
      }

      .extra-countdown-badge {
        left: -4px;
        top: -4px;
        padding: 2px 5px;
        border-width: 1px;
        font-size: clamp(0.34rem, 1.6vw, 0.52rem);
      }

      .sticky-countdown {
        width: 100%;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2px;
      }

      .header-box {
        border-radius: 7px;
        padding: 3px 1px;
        border-width: 1px;
      }

      .header-number {
        font-size: clamp(0.56rem, 3.25vw, 0.96rem);
        letter-spacing: -0.06em;
      }

      .header-label {
        font-size: clamp(0.17rem, 1vw, 0.28rem);
        letter-spacing: 0.025em;
      }

      .digit {
        width: 0.54em;
        flex-basis: 0.54em;
      }

      .number-digits {
        gap: 0;
      }
    }

    @media (max-width: 430px) {
      body {
        padding-top: 10px;
      }

      .sticky-countdown-header {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.92fr);
        gap: 3px;
        padding: 5px;
      }

      .sticky-title {
        font-size: clamp(0.43rem, 2.72vw, 0.64rem);
        letter-spacing: -0.06em;
      }

      .sticky-heart {
        font-size: clamp(0.34rem, 2vw, 0.54rem);
      }

      .extra-countdown-badge {
        left: -4px;
        top: -4px;
        padding: 2px 4px;
        font-size: clamp(0.28rem, 1.45vw, 0.42rem);
      }

      .header-box {
        padding: 3px 0;
        border-radius: 6px;
      }

      .header-number {
        font-size: clamp(0.48rem, 3.15vw, 0.82rem);
      }

      .header-label {
        font-size: clamp(0.15rem, 0.9vw, 0.24rem);
        letter-spacing: 0;
      }

      .container {
        gap: 15px;
      }

      .hero-header {
        gap: 7px;
      }

      .top-info-row {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
      }

      .weather-card,
      .ow-card {
        min-height: 50px;
      }

      .ow-card {
        column-gap: 7px;
        padding: 5px 8px 5px 6px;
      }

      .ow-badge {
        width: 35px;
        height: 35px;
      }

      .ow-name {
        font-size: 0.64rem;
      }

      .ow-rank {
        font-size: 0.49rem;
      }

      .weather-card {
        padding: 4px 6px;
        border-radius: 12px;
      }

      .weather-crest {
        right: 2px;
        height: 42px;
        max-width: 43%;
        opacity: 0.18;
      }

      .weather-card-zagreb .weather-crest {
        height: 44px;
        opacity: 0.16;
      }

      .weather-card-zapresic .weather-crest {
        opacity: 0.22;
      }

      .weather-name {
        font-size: clamp(0.3rem, 1.7vw, 0.46rem);
      }

      .weather-temp {
        font-size: clamp(0.76rem, 3.7vw, 1.05rem);
      }

      .weather-icon {
        font-size: clamp(0.76rem, 3.4vw, 1rem);
      }

      .weather-status {
        font-size: clamp(0.26rem, 1.35vw, 0.4rem);
      }

      .countdown-wrap {
        gap: 18px;
      }

      .progress-wrap {
        gap: 5px;
        margin-bottom: 18px;
      }

      .flag {
        height: 18px;
        width: 30px;
        border-radius: 4px;
      }

      .progress-bar {
        height: 18px;
      }

      .car {
        height: 36px;
        animation-duration: 0.57s;
      }

      .extra-time-badge {
        top: calc(50% - 27px);
        right: 2px;
        padding: 2px 5px;
        border-width: 1px;
        font-size: clamp(0.4rem, 1.95vw, 0.56rem);
      }

      .original-finish-marker {
        width: 17px;
        height: 17px;
        border-width: 1px;
        box-shadow:
          0 6px 16px rgba(143, 45, 82, 0.2),
          0 0 0 3px rgba(255, 255, 255, 0.22);
      }

      .distance-label {
        top: calc(50% + 23px);
        padding: 3px 6px;
        border-radius: 8px;
        font-size: clamp(0.48rem, 2.15vw, 0.62rem);
      }

      .ghost-car {
        height: 36px;
      }

      .ghost-bubble {
        top: calc(50% + 23px);
        padding: 4px 6px;
        border-radius: 8px;
        font-size: clamp(0.44rem, 1.95vw, 0.58rem);
      }

      .challenge-list {
        gap: 6px;
      }

      .challenge-row {
        grid-template-columns: 0.34fr 1fr;
        gap: 5px;
        border-radius: 9px;
      }

      .challenge-left {
        border-radius: 9px;
      }

      .challenge-date {
        font-size: clamp(0.32rem, 1.55vw, 0.48rem);
        padding: 3px 2px;
      }

      .challenge-date-small {
        font-size: 0.68em;
      }

      .challenge-name {
        min-height: 38px;
        padding: 5px 3px;
        font-size: 2.05vw;
        letter-spacing: 0;
        line-height: 1.08;
      }

      .challenge-name-small {
        font-size: 0.6em;
        line-height: 1;
        margin-top: 2px;
      }

      .challenge-description {
        min-height: 56px;
        padding: 6px 6px;
        border-radius: 9px;
        font-size: 2.55vw;
        line-height: 1.14;
      }

      .picture-day-row {
        min-height: 92px;
      }

      .picture-day-left {
        min-height: 56px;
        height: auto;
      }

      .picture-day-name {
        min-height: 30px;
        padding: 4px 6px;
      }

      .picture-day-icon-chip {
        width: 21px;
        height: 21px;
      }

      .wide-event-left {
        min-height: 0;
      }

      .wide-event-left-image,
      .wide-image,
      .text-post-left-image {
        aspect-ratio: 469 / 185;
      }

      .wide-image-caption {
        padding: 7px 8px;
        font-size: 2.45vw;
        line-height: 1.14;
      }

      .text-post-right-title {
        padding: 4px 6px;
        font-size: clamp(0.32rem, 1.55vw, 0.48rem);
      }

      .text-post-description {
        min-height: 56px;
      }

      .result-left {
        min-height: 68px;
      }

      .result-name {
        min-height: 48px;
        padding-top: 7px;
        padding-bottom: 7px;
      }

      .picture-day-grid {
        gap: 5px;
        border-radius: 9px;
      }

      .person-card,
      .wide-image-card {
        border-radius: 9px;
      }

      .person-title {
        font-size: clamp(0.32rem, 1.55vw, 0.48rem);
        padding: 3px 2px;
      }

      .copy-button {
        right: 12px;
        bottom: 12px;
        width: 46px;
        height: 46px;
        border-radius: 12px;
      }
    }

.person-card video.person-image,
.wide-image-card video.wide-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.38);
}

.wide-image-card video.wide-image {
  aspect-ratio: 469 / 185;
  height: auto;
}

.wide-event-left video.wide-event-left-image,
.text-post-left video.text-post-left-image {
  width: 100%;
  aspect-ratio: 469 / 185;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  cursor: default;
  background: rgba(255, 255, 255, 0.38);
}

body.upload-page {
  padding-top: clamp(28px, 6vw, 70px);
  align-items: flex-start;
}

.upload-shell {
  width: min(780px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.upload-panel {
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.96), transparent 24%),
    radial-gradient(circle at 88% 78%, rgba(255, 190, 215, 0.62), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 224, 238, 0.72));
  box-shadow: 0 18px 46px rgba(143, 45, 82, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: clamp(18px, 4vw, 34px);
}

.upload-title {
  color: #87314F;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(135, 49, 79, 0.16);
}

.upload-section-title {
  color: #87314F;
  font-size: clamp(1.15rem, 3.2vw, 1.9rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 8px;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(135, 49, 79, 0.16);
}

.upload-subtitle {
  color: rgba(135, 49, 79, 0.78);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 20px;
  text-align: center;
}

.upload-form {
  display: grid;
  gap: 14px;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.upload-field {
  display: grid;
  gap: 7px;
}

.upload-field label {
  font-weight: 950;
  color: #87314F;
}

.upload-field input,
.upload-field textarea {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  color: #87314F;
  padding: 12px 14px;
  font: inherit;
  font-weight: 800;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 18px rgba(143, 45, 82, 0.1);
}

.upload-field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.35;
}

.upload-field input[type="file"] {
  cursor: pointer;
}

.upload-button {
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 126, 176, 0.94), rgba(255, 182, 210, 0.94));
  color: #87314F;
  padding: 14px 18px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(143, 45, 82, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.upload-button:hover {
  transform: translateY(-1px);
}

.upload-toast {
  position: fixed;
  top: clamp(14px, 2.5vw, 24px);
  left: 50%;
  z-index: 12000;
  width: min(560px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 13px 18px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.98), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 224, 238, 0.92));
  color: #87314F;
  font-weight: 950;
  line-height: 1.25;
  box-shadow: 0 18px 48px rgba(143, 45, 82, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translate(-50%, -18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.upload-toast.active {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.upload-toast.success {
  color: #257b3e;
}

.upload-toast.error {
  color: #a11f4c;
}

.upload-toast-close {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.upload-home-link {
  display: inline-flex;
  align-self: center;
  color: #87314F;
  font-weight: 950;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.5);
}

.upload-posts-panel {
  width: 100%;
}

.upload-list-title {
  color: #87314F;
  font-size: clamp(1.12rem, 3vw, 1.85rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(135, 49, 79, 0.16);
}

.upload-list-subtitle {
  margin-bottom: 16px;
}

.upload-empty {
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
  color: rgba(135, 49, 79, 0.82);
  font-weight: 900;
  text-align: center;
}

.upload-post-list {
  display: grid;
  gap: 10px;
}

.upload-post-item {
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 10px 26px rgba(143, 45, 82, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.upload-post-main {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 12px;
  align-items: center;
}

.upload-post-preview {
  min-width: 0;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.upload-preview-media {
  width: 100%;
  height: 58px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.upload-preview-wide {
  grid-column: 1 / -1;
}

.upload-preview-text {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  color: rgba(135, 49, 79, 0.76);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.upload-post-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.upload-post-title {
  color: #87314F;
  font-size: clamp(0.9rem, 1.8vw, 1.18rem);
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.upload-post-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.44);
  color: rgba(135, 49, 79, 0.8);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-transform: capitalize;
}

.upload-post-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.upload-delete-form {
  margin: 0;
}

.upload-edit-button,
.upload-delete-button {
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: #fff;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 950;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(112, 22, 52, 0.25);
  box-shadow: 0 10px 24px rgba(143, 45, 82, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.upload-edit-button {
  background: linear-gradient(135deg, rgba(135, 49, 79, 0.78), rgba(202, 121, 153, 0.88));
}

.upload-delete-button {
  background: linear-gradient(135deg, rgba(255, 74, 132, 0.92), rgba(255, 159, 194, 0.92));
}

.upload-edit-button:hover,
.upload-delete-button:hover {
  transform: translateY(-1px);
}

.upload-edit-form {
  display: grid;
  gap: 13px;
  margin-top: 12px;
  padding: 14px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.74), transparent 34%),
    rgba(255, 246, 250, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateY(-8px) scale(0.995);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.upload-edit-form[hidden] {
  display: none;
}

.upload-edit-form.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.upload-edit-header {
  display: grid;
  gap: 3px;
  color: #87314F;
}

.upload-edit-header strong {
  font-size: 1.02rem;
  font-weight: 950;
}

.upload-edit-header span {
  color: rgba(135, 49, 79, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
}

.upload-edit-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.upload-save-edit-button {
  padding-top: 12px;
  padding-bottom: 12px;
}

.upload-edit-cancel {
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: #87314F;
  padding: 12px 16px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(143, 45, 82, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.upload-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(35, 13, 24, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.upload-confirm-overlay.active {
  display: flex;
}

.upload-confirm-dialog {
  width: min(460px, 100%);
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.96), transparent 24%),
    radial-gradient(circle at 88% 78%, rgba(255, 190, 215, 0.62), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 224, 238, 0.86));
  box-shadow: 0 24px 70px rgba(35, 13, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: clamp(18px, 4vw, 28px);
  color: #87314F;
  text-align: center;
}

.upload-confirm-dialog h2 {
  margin: 0 0 9px;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(135, 49, 79, 0.16);
}

.upload-confirm-dialog p {
  margin: 0 0 18px;
  color: rgba(135, 49, 79, 0.82);
  font-weight: 850;
  line-height: 1.35;
}

.upload-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.upload-confirm-cancel,
.upload-confirm-delete {
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(143, 45, 82, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.upload-confirm-cancel {
  background: rgba(255, 255, 255, 0.6);
  color: #87314F;
}

.upload-confirm-delete {
  background: linear-gradient(135deg, rgba(255, 74, 132, 0.94), rgba(255, 159, 194, 0.94));
  color: #fff;
  text-shadow: 0 1px 0 rgba(112, 22, 52, 0.25);
}

@media (max-width: 650px) {
  .upload-shell {
    width: calc(100% - 18px);
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-post-main {
    grid-template-columns: 82px 1fr;
    gap: 9px;
  }

  .upload-post-preview {
    height: 52px;
  }

  .upload-preview-media {
    height: 52px;
    border-radius: 10px;
  }

  .upload-post-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .upload-delete-form,
  .upload-edit-button,
  .upload-delete-button {
    width: 100%;
  }

  .upload-edit-actions {
    grid-template-columns: 1fr;
  }

  .upload-edit-cancel {
    width: 100%;
  }

  .upload-confirm-actions {
    grid-template-columns: 1fr;
  }
}


.post-card {
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
}

.post-card-glow {
  animation: postCardGlow 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes postCardGlow {
  0% {
    box-shadow:
      0 0 0 rgba(255, 111, 174, 0),
      0 0 0 rgba(255, 255, 255, 0);
  }

  30% {
    box-shadow:
      0 0 0 4px rgba(255, 255, 255, 0.62),
      0 20px 52px rgba(255, 111, 174, 0.26);
  }

  100% {
    box-shadow:
      0 0 0 rgba(255, 111, 174, 0),
      0 0 0 rgba(255, 255, 255, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post-card-glow {
    animation: none !important;
    transition: none !important;
  }
}

.post-bottom-tools {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  margin-top: clamp(8px, 1.8vw, 18px);
}

.post-tools {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: clamp(2px, 0.8vw, 8px);
}

.post-filter-form {
  display: inline-grid;
  grid-template-columns: auto minmax(170px, 230px);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 224, 238, 0.58));
  box-shadow: 0 10px 26px rgba(143, 45, 82, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.post-filter-form label {
  color: rgba(135, 49, 79, 0.78);
  font-size: clamp(0.54rem, 1vw, 0.74rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: 6px;
}

.post-filter-form select,
.upload-select,
.upload-field select {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: #87314F;
  padding: 12px 14px;
  font: inherit;
  font-weight: 900;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 18px rgba(143, 45, 82, 0.1);
}

.post-filter-form select {
  border-radius: 999px;
  padding: 8px 32px 8px 12px;
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
}

.post-pagination-wrap {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.post-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 224, 238, 0.56));
  box-shadow: 0 12px 32px rgba(143, 45, 82, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pagination-button,
.pagination-dots {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: #87314F;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(143, 45, 82, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pagination-button.active {
  background: linear-gradient(135deg, rgba(255, 126, 176, 0.94), rgba(255, 182, 210, 0.94));
  color: #fff;
  text-shadow: 0 1px 0 rgba(112, 22, 52, 0.26);
}

.pagination-button.disabled {
  opacity: 0.38;
  filter: grayscale(1);
  cursor: default;
}

.pagination-dots {
  min-width: 26px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  opacity: 0.62;
}


.progress-post-titlebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  padding: clamp(7px, 1vw, 11px) clamp(12px, 1.6vw, 18px) clamp(5px, 0.8vw, 9px);
}

.progress-post-date {
  min-width: max-content;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(135, 49, 79, 0.82);
  font-size: clamp(0.52rem, 0.9vw, 0.72rem);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(143, 45, 82, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.progress-post-name {
  min-width: 0;
  color: #87314F;
  font-size: clamp(0.95rem, 1.9vw, 1.55rem);
  font-weight: 950;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(135, 49, 79, 0.14);
}

.progress-post-row {
  grid-template-columns: 1fr;
  background: transparent;
}

.progress-post-card {
  --progress-color-1: #ff7eb0;
  --progress-color-2: #ffb6d2;
  --progress-bg-color: #ffffff;
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: visible;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: clamp(10px, 1.7vw, 18px);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.98), transparent 25%),
    radial-gradient(circle at 90% 70%, color-mix(in srgb, var(--progress-color-2) 38%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--progress-bg-color) 72%, white), rgba(255, 224, 238, 0.52));
  box-shadow: 0 14px 38px rgba(143, 45, 82, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.progress-post-titlebar {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  padding: clamp(7px, 1vw, 11px) clamp(12px, 1.6vw, 18px) clamp(6px, 0.9vw, 10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.54);
  border-radius: clamp(8px, 1.4vw, 16px) clamp(8px, 1.4vw, 16px) 0 0;
}

.progress-post-date {
  min-width: max-content;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(135, 49, 79, 0.82);
  font-size: clamp(0.52rem, 0.9vw, 0.72rem);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(143, 45, 82, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.progress-post-name {
  min-width: 0;
  color: #87314F;
  font-size: clamp(0.86rem, 1.55vw, 1.22rem);
  font-weight: 950;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(135, 49, 79, 0.12);
}

.progress-post-body {
  display: grid;
  gap: clamp(8px, 1.3vw, 14px);
  padding: clamp(17px, 3vw, 30px) clamp(12px, 2vw, 22px) clamp(10px, 1.5vw, 16px);
}

.progress-post-track {
  position: relative;
  width: 100%;
  height: clamp(20px, 4.2vw, 36px);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 26px rgba(143, 45, 82, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  overflow: visible;
}

.progress-post-track-bg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--progress-bg-color) 72%, white);
  opacity: 0.88;
  overflow: hidden;
}

.progress-post-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background:
    repeating-linear-gradient(45deg, var(--progress-color-1) 0px, var(--progress-color-1) 12px, var(--progress-color-2) 12px, var(--progress-color-2) 24px);
  background-size: 34px 34px;
  animation: progressStripesMove 2.2s linear infinite;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), inset 0 0 14px rgba(135, 49, 79, 0.08);
  transition: width 0.32s ease;
}

.progress-post-card.progress-complete .progress-post-fill {
  animation: none;
  background-position: 0 0;
  filter: saturate(0.88);
}

.progress-post-card.progress-complete .progress-mini-counter {
  display: none;
}

.progress-post-gloss {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 55%);
  pointer-events: none;
}

.progress-post-icon {
  position: absolute;
  top: 50%;
  left: 0%;
  height: clamp(34px, 7.2vw, 64px);
  width: auto;
  max-width: 92px;
  transform: translate(-50%, -58%);
  transform-origin: 50% 65%;
  z-index: 3;
  filter: drop-shadow(0 5px 8px rgba(135, 49, 79, 0.24));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: left 0.32s ease;
}

.progress-post-bubble {
  position: absolute;
  right: clamp(5px, 1vw, 10px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 3px 8px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #87314F;
  font-size: clamp(0.5rem, 0.9vw, 0.74rem);
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(143, 45, 82, 0.13);
}

.progress-post-time-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(135, 49, 79, 0.72);
  font-size: clamp(0.48rem, 0.9vw, 0.7rem);
  font-weight: 900;
  line-height: 1;
}

.upload-post-type-group[hidden] {
  display: none !important;
}

.upload-color-grid input[type="color"],
.upload-field input[type="color"] {
  min-height: 48px;
  padding: 5px;
  cursor: pointer;
}

@media (max-width: 650px) {
  .post-bottom-tools {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .post-tools {
    justify-content: stretch;
  }

  .post-filter-form {
    width: 100%;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .post-filter-form label {
    padding-left: 4px;
  }

  .post-pagination {
    border-radius: 18px;
  }

  .pagination-button,
  .pagination-dots {
    min-width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .progress-post-titlebar {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: left;
  }

  .progress-post-date {
    min-width: 0;
    width: fit-content;
    white-space: normal;
  }

  .progress-post-name {
    white-space: normal;
  }

  .progress-post-icon {
    height: 36px;
    max-width: 58px;
  }

  .progress-post-body {
    padding-top: 20px;
  }

  .progress-post-bubble {
    right: 3px;
    padding: 1px 5px;
    border-width: 1px;
    font-size: clamp(0.4rem, 1.85vw, 0.56rem);
    box-shadow: 0 3px 8px rgba(143, 45, 82, 0.1);
  }
}

@media (max-width: 430px) {
  .progress-post-bubble {
    right: 2px;
    padding: 1px 4px;
    font-size: clamp(0.36rem, 1.65vw, 0.5rem);
  }
}

.progress-post-titlebar {
  grid-template-columns: auto minmax(0, 1fr) !important;
  overflow: visible;
}

.progress-post-date-line {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(5px, 0.8vw, 10px);
  overflow: visible;
}

.progress-post-heading-line {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(7px, 1vw, 12px);
  overflow: visible;
}

.progress-post-heading-line .progress-post-name {
  flex: 0 1 auto;
}

.progress-mini-counter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.38vw, 5px);
  overflow: visible;
  isolation: isolate;
}

.progress-mini-counter-mobile {
  display: none;
}

.progress-mini-cell {
  position: relative;
  min-width: clamp(28px, 3.1vw, 42px);
  height: clamp(24px, 2.5vw, 32px);
  display: inline-grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: center;
  gap: clamp(1px, 0.18vw, 3px);
  padding: 0 clamp(5px, 0.62vw, 8px);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: clamp(8px, 0.95vw, 13px);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.98), transparent 35%),
    linear-gradient(135deg, color-mix(in srgb, var(--progress-color-1) 18%, white), color-mix(in srgb, var(--progress-color-2) 22%, white));
  color: color-mix(in srgb, var(--progress-color-1) 72%, #87314F);
  box-shadow:
    0 8px 18px color-mix(in srgb, var(--progress-color-1) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.progress-mini-number {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.58rem, 0.98vw, 0.84rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.76);
}

.progress-mini-label {
  position: relative;
  z-index: 2;
  color: color-mix(in srgb, var(--progress-color-2) 58%, #87314F);
  font-size: clamp(0.38rem, 0.62vw, 0.55rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.progress-mini-digits {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.08em;
  line-height: 1;
  gap: 0;
}

.progress-mini-digit {
  position: relative;
  display: inline-block;
  width: 0.58em;
  height: 1.08em;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  flex: 0 0 0.58em;
}

.progress-mini-static,
.progress-mini-old,
.progress-mini-new {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.progress-mini-static {
  top: 0;
}

.progress-mini-old {
  top: 0;
  animation: oldDigitUp 0.38s ease-in forwards;
}

.progress-mini-new {
  top: 0;
  animation: newDigitUp 0.38s ease-out forwards;
}

.progress-mini-counter-pop .progress-mini-cell {
  animation: progressMiniPop 0.34s cubic-bezier(0.2, 1.25, 0.34, 1) both;
}

.progress-mini-counter-pop .progress-mini-cell:nth-child(2) {
  animation-delay: 0.035s;
}

.progress-mini-counter-pop .progress-mini-cell:nth-child(3) {
  animation-delay: 0.07s;
}

.progress-mini-counter-pop .progress-mini-cell:nth-child(4) {
  animation-delay: 0.105s;
}

.progress-mini-complete .progress-mini-cell {
  filter: saturate(0.82);
  opacity: 0.86;
}

@keyframes progressMiniPop {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.86);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 650px) {
  .progress-post-titlebar {
    grid-template-columns: 1fr !important;
    gap: 7px;
  }

  .progress-post-date-line {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
  }

  .progress-mini-counter-desktop {
    display: none;
  }

  .progress-mini-counter-mobile {
    display: inline-flex;
  }

  .progress-post-heading-line {
    width: 100%;
    justify-content: flex-start;
  }

  .progress-mini-counter {
    gap: 3px;
  }

  .progress-mini-cell {
    min-width: clamp(24px, 7.1vw, 34px);
    height: clamp(20px, 6.1vw, 28px);
    padding: 0 clamp(3px, 1.4vw, 6px);
    border-width: 1px;
    border-radius: 9px;
    box-shadow:
      0 5px 12px color-mix(in srgb, var(--progress-color-1) 18%, transparent),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  .progress-mini-number {
    font-size: clamp(0.46rem, 2.25vw, 0.68rem);
  }

  .progress-mini-label {
    font-size: clamp(0.3rem, 1.45vw, 0.44rem);
  }

  .progress-mini-digit {
    width: 0.56em;
    flex-basis: 0.56em;
  }
}

@media (max-width: 430px) {
  .progress-mini-counter {
    gap: 2px;
  }

  .progress-mini-cell {
    min-width: clamp(22px, 6.4vw, 29px);
    height: clamp(18px, 5.4vw, 24px);
    padding: 0 3px;
    border-radius: 8px;
  }

  .progress-mini-number {
    font-size: clamp(0.4rem, 1.95vw, 0.56rem);
  }

  .progress-mini-label {
    font-size: clamp(0.26rem, 1.2vw, 0.36rem);
  }
}


/* Song post */
.song-post-row {
  grid-template-columns: 1fr;
  background: transparent;
}

.song-post-card {
  --song-accent: #ff7eb0;
  --song-ink: color-mix(in srgb, var(--song-accent) 42%, #87314F);
  --song-soft: color-mix(in srgb, var(--song-accent) 30%, #ffd8e8);
  --song-faint: color-mix(in srgb, var(--song-accent) 16%, white);
  position: relative;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  padding: clamp(10px, 1.7vw, 18px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: clamp(14px, 2vw, 24px);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.95), transparent 30%),
    radial-gradient(circle at 88% 84%, color-mix(in srgb, var(--song-accent) 30%, transparent), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 223, 238, 0.54));
  box-shadow:
    0 12px 34px rgba(143, 45, 82, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.song-post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.42) 45%, transparent 70%),
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--song-accent) 8%, transparent) 0 16px, rgba(255, 255, 255, 0.08) 16px 32px);
  pointer-events: none;
}

.song-post-topbar,
.song-player {
  position: relative;
  z-index: 2;
}

.song-post-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.4vw, 16px);
  margin-bottom: clamp(8px, 1.4vw, 16px);
}

.song-post-title-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(3px, 0.45vw, 6px);
}

.song-post-date-line {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: clamp(3px, 0.45vw, 5px) clamp(8px, 0.9vw, 12px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(135, 49, 79, 0.78);
  font-size: clamp(0.54rem, 0.9vw, 0.78rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-post-title {
  min-width: 0;
  color: var(--song-ink);
  font-size: clamp(1.05rem, 2.4vw, 2.05rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: left;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72), 0 8px 22px color-mix(in srgb, var(--song-accent) 22%, transparent);
}

.song-post-eq {
  flex: 0 0 auto;
  height: clamp(22px, 3.5vw, 42px);
  display: flex;
  align-items: flex-end;
  gap: clamp(3px, 0.45vw, 6px);
  padding: clamp(4px, 0.6vw, 8px) clamp(8px, 1vw, 13px);
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 18px rgba(143, 45, 82, 0.11);
}

.song-post-eq span {
  display: block;
  width: clamp(4px, 0.55vw, 7px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--song-accent), var(--song-ink));
  box-shadow: 0 0 12px rgba(255, 126, 176, 0.45);
  transform-origin: bottom center;
  transform: scaleY(0.62);
  opacity: 0.72;
  animation: songEqualizer 0.95s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.song-post-eq span:nth-child(1) { height: 42%; animation-delay: -0.1s; }
.song-post-eq span:nth-child(2) { height: 76%; animation-delay: -0.35s; }
.song-post-eq span:nth-child(3) { height: 55%; animation-delay: -0.55s; }
.song-post-eq span:nth-child(4) { height: 88%; animation-delay: -0.2s; }
.song-post-eq span:nth-child(5) { height: 48%; animation-delay: -0.75s; }

.song-post-card.song-playing .song-post-eq span {
  animation-play-state: running;
}

@keyframes songEqualizer {
  from { transform: scaleY(0.45); opacity: 0.65; }
  to { transform: scaleY(1); opacity: 1; }
}

.song-player {
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: clamp(14px, 2vw, 22px);
  background:
    radial-gradient(circle at 8% 50%, color-mix(in srgb, var(--song-accent) 32%, transparent), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 229, 241, 0.48));
  box-shadow:
    0 12px 28px rgba(143, 45, 82, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: clamp(10px, 1.5vw, 18px);
}

.song-player.is-playing {
  box-shadow:
    0 14px 34px color-mix(in srgb, var(--song-accent) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.song-player-glow {
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--song-accent) 36%, transparent), transparent 42%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.song-player.is-playing .song-player-glow {
  opacity: 1;
  animation: songGlowSpin 8s linear infinite;
}

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

.song-player-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(116px, 0.32fr);
  align-items: center;
  gap: clamp(9px, 1.5vw, 18px);
}

.song-play-button {
  width: clamp(52px, 7vw, 76px);
  height: clamp(52px, 7vw, 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.98), transparent 35%),
    linear-gradient(135deg, var(--song-accent), var(--song-ink));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(143, 45, 82, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.44);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.song-play-button:hover { transform: translateY(-2px) scale(1.03); }
.song-play-button:active { transform: translateY(1px) scale(0.96); }
.song-player.is-playing .song-play-button { box-shadow: 0 14px 32px color-mix(in srgb, var(--song-accent) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.44); }
.song-play-icon { font-size: clamp(1.1rem, 2.2vw, 1.75rem); font-weight: 950; line-height: 1; margin-left: 0.08em; }
.song-player.is-playing .song-play-icon { margin-left: 0; }

.song-player-info {
  min-width: 0;
  text-align: left;
}

.song-player-kicker {
  display: inline-flex;
  align-items: center;
  padding: clamp(2px, 0.35vw, 4px) clamp(7px, 0.8vw, 10px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: rgba(135, 49, 79, 0.72);
  font-size: clamp(0.46rem, 0.8vw, 0.68rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: clamp(4px, 0.55vw, 7px);
}

.song-player-name {
  color: var(--song-ink);
  font-size: clamp(0.94rem, 2.1vw, 1.65rem);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
}

.song-player-subline {
  margin-top: clamp(3px, 0.45vw, 6px);
  color: rgba(135, 49, 79, 0.66);
  font-size: clamp(0.58rem, 1vw, 0.84rem);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-player-jump-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(5px, 0.8vw, 10px);
}

.song-jump-button {
  min-width: clamp(48px, 6vw, 70px);
  padding: clamp(7px, 0.85vw, 10px) clamp(8px, 1vw, 12px);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--song-ink);
  font-size: clamp(0.58rem, 1vw, 0.82rem);
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(143, 45, 82, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.song-jump-button:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.68); }
.song-jump-button:active { transform: translateY(1px) scale(0.96); }


.song-volume-control {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(82px, 1fr) auto;
  align-items: center;
  gap: clamp(5px, 0.75vw, 9px);
  padding: clamp(6px, 0.8vw, 9px) clamp(8px, 1vw, 12px);
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.88), transparent 38%),
    rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 18px rgba(143, 45, 82, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.song-volume-icon {
  color: rgba(135, 49, 79, 0.82);
  font-size: clamp(0.74rem, 1.15vw, 0.98rem);
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(143, 45, 82, 0.12));
}

.song-volume-label {
  color: rgba(135, 49, 79, 0.72);
  font-size: clamp(0.48rem, 0.78vw, 0.66rem);
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 3.1em;
  text-align: right;
}

.song-volume-range {
  width: 100%;
  height: clamp(16px, 2vw, 22px);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  background: transparent;
  --song-volume: 100%;
}

.song-volume-range::-webkit-slider-runnable-track {
  height: clamp(7px, 0.95vw, 10px);
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--song-ink) 0%, var(--song-accent) var(--song-volume), rgba(255, 255, 255, 0.52) var(--song-volume), rgba(255, 255, 255, 0.52) 100%);
  box-shadow: inset 0 1px 3px rgba(135, 49, 79, 0.1);
}

.song-volume-range::-moz-range-track {
  height: clamp(7px, 0.95vw, 10px);
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.song-volume-range::-moz-range-progress {
  height: clamp(7px, 0.95vw, 10px);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--song-ink), var(--song-accent));
}

.song-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: clamp(16px, 2vw, 22px);
  height: clamp(16px, 2vw, 22px);
  margin-top: calc((clamp(7px, 0.95vw, 10px) - clamp(16px, 2vw, 22px)) / 2 - 2px);
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #ffd8e8);
  box-shadow: 0 6px 14px rgba(143, 45, 82, 0.2), 0 0 0 4px color-mix(in srgb, var(--song-accent) 18%, transparent);
}

.song-volume-range::-moz-range-thumb {
  width: clamp(16px, 2vw, 22px);
  height: clamp(16px, 2vw, 22px);
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #ffd8e8);
  box-shadow: 0 6px 14px rgba(143, 45, 82, 0.2), 0 0 0 4px color-mix(in srgb, var(--song-accent) 18%, transparent);
}

.song-timeline-wrap {
  position: relative;
  z-index: 2;
  margin-top: clamp(10px, 1.4vw, 16px);
}

.song-range {
  width: 100%;
  height: clamp(18px, 2.5vw, 26px);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  background: transparent;
  --song-progress: 0%;
}

.song-range::-webkit-slider-runnable-track {
  height: clamp(10px, 1.3vw, 14px);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--song-accent) 0%, var(--song-accent) var(--song-progress), rgba(255, 255, 255, 0.52) var(--song-progress), rgba(255, 255, 255, 0.52) 100%);
  box-shadow: inset 0 2px 4px rgba(135, 49, 79, 0.09), 0 7px 18px rgba(143, 45, 82, 0.11);
}

.song-range::-moz-range-track {
  height: clamp(10px, 1.3vw, 14px);
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.song-range::-moz-range-progress {
  height: clamp(10px, 1.3vw, 14px);
  border-radius: 999px;
  background: var(--song-accent);
}

.song-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: clamp(20px, 2.7vw, 30px);
  height: clamp(20px, 2.7vw, 30px);
  margin-top: calc((clamp(10px, 1.3vw, 14px) - clamp(20px, 2.7vw, 30px)) / 2 - 2px);
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #ffd8e8);
  box-shadow: 0 8px 18px rgba(143, 45, 82, 0.22), 0 0 0 6px color-mix(in srgb, var(--song-accent) 18%, transparent);
}

.song-range::-moz-range-thumb {
  width: clamp(20px, 2.7vw, 30px);
  height: clamp(20px, 2.7vw, 30px);
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #ffd8e8);
  box-shadow: 0 8px 18px rgba(143, 45, 82, 0.22), 0 0 0 6px color-mix(in srgb, var(--song-accent) 18%, transparent);
}

.song-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(135, 49, 79, 0.78);
  font-size: clamp(0.58rem, 1vw, 0.82rem);
  font-weight: 950;
  line-height: 1;
  padding: clamp(4px, 0.5vw, 7px) clamp(2px, 0.4vw, 5px) 0;
  font-variant-numeric: tabular-nums;
}

.upload-preview-audio {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
}

@media (max-width: 700px) {
  .song-post-card { padding: 9px; border-radius: 14px; }
  .song-post-topbar { align-items: flex-start; margin-bottom: 8px; }
  .song-post-title { font-size: clamp(0.86rem, 4vw, 1.18rem); }
  .song-post-date-line { font-size: clamp(0.42rem, 2vw, 0.56rem); padding: 3px 7px; }
  .song-post-eq { height: 27px; padding: 4px 8px; gap: 3px; }
  .song-player { padding: 8px; border-radius: 13px; }
  .song-player-main { grid-template-columns: auto 1fr; gap: 8px; }
  .song-player-jump-row { grid-column: 1 / -1; justify-content: center; margin-top: 4px; }
  .song-volume-control { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; padding: 6px 8px; }
  .song-volume-icon { font-size: 0.78rem; }
  .song-volume-label { font-size: 0.52rem; }
  .song-play-button { width: 46px; height: 46px; }
  .song-play-icon { font-size: 1.05rem; }
  .song-player-kicker { font-size: 0.4rem; margin-bottom: 4px; }
  .song-player-name { font-size: clamp(0.72rem, 3.3vw, 0.96rem); }
  .song-player-subline { font-size: 0.5rem; }
  .song-jump-button { min-width: 56px; padding: 7px 10px; font-size: 0.62rem; }
  .song-time-row { font-size: 0.58rem; }
}


.compact-color-field input[type="color"] {
  width: min(180px, 100%);
  height: 42px;
  padding: 5px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 18px rgba(143, 45, 82, 0.1);
  cursor: pointer;
}

@media (max-width: 700px) {
  .song-player-main {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .song-player-jump-row {
    grid-column: 1 / 2;
    justify-content: flex-start;
    margin-top: 4px;
    gap: 4px;
  }

  .song-volume-control {
    grid-column: 2 / 3;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 6px 7px;
    gap: 5px;
    margin-top: 4px;
  }

  .song-volume-control .song-volume-icon {
    display: none;
  }

  .song-volume-label {
    min-width: 2.8em;
    font-size: 0.48rem;
  }

  .song-volume-range {
    height: 18px;
  }
}

@media (max-width: 430px) {
  .song-jump-button {
    min-width: 43px;
    padding: 7px 7px;
    font-size: 0.56rem;
  }

  .song-volume-control {
    padding-left: 6px;
    padding-right: 6px;
  }
}
