/* ===== CSS Variables ===== */
    :root {
      --bg: #0D0D0D;
      --bg2: #1A1A1A;
      --bg3: #242424;
      --ink: #FFFFFF;
      --muted: #9CA3AF;
      --rule: #333333;
      --accent: #FF6B00;
      --accent2: #FF8C33;
      --accent-dark: #CC5500;
      --card-radius: 10px;
      --nav-height: 68px;
      --video-ratio: 9 / 16;
    }

    /* ===== Reset & Base ===== */
    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      text-size-adjust: 100%;
    }

    body {
      font-family: 'Noto Sans CJK SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
      background: var(--bg);
      color: var(--ink);
      line-height: 1.6;
      font-size: 15px;
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: color 0.3s;
    }

    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    ul, ol {
      list-style: none;
    }

    img {
      display: block;
      max-width: 100%;
      height: auto;
    }

    /* ===== Scrollbar ===== */
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: var(--bg2);
    }
    ::-webkit-scrollbar-thumb {
      background: var(--rule);
      border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--accent);
    }

    /* ===== Header ===== */
    .header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: var(--nav-height);
      background: rgba(13, 13, 13, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--rule);
      z-index: 1000;
      display: flex;
      align-items: center;
      padding: 0 24px;
    }

    .header-inner {
      max-width: 1400px;
      width: 100%;
      height: 100%;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 14px;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      font-size: 28px;
      font-weight: 600;
      color: var(--accent);
      flex-shrink: 0;
      white-space: nowrap;
    }

    .logo-text {
      letter-spacing: 1px;
    }

    .header-nav {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .nav-btn {
      padding: 8px 18px;
      border-radius: 6px;
      background: var(--accent);
      color: #fff;
      font-size: 15px;
      font-weight: 500;
      transition: all 0.3s;
    }

    .nav-btn:hover,
    .nav-btn.active {
      color: #fff;
      background: var(--accent2);
    }

    /* Auth buttons */
    .header-auth {
      display: flex;
      align-items: center;
      gap: 10px;
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      flex-shrink: 0;
    }

    .btn-register {
      padding: 8px 18px;
      border: none;
      border-radius: 6px;
      background: var(--accent);
      color: #fff;
      font-size: 15px;
      font-weight: 500;
      transition: all 0.3s;
      cursor: pointer;
      font-family: inherit;
    }

    .btn-register:hover {
      background: var(--accent2);
    }

    /* ===== Main Content ===== */
    .main-content {
      margin-top: var(--nav-height);
      min-height: calc(100vh - var(--nav-height));
    }

    /* ===== Hero Banner ===== */
    .hero-banner {
      position: relative;
      width: 100%;
      height: 420px;
      overflow: hidden;
    }

    .hero-banner img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(13, 13, 13, 0.3) 0%,
        rgba(13, 13, 13, 0.1) 40%,
        rgba(13, 13, 13, 0.8) 100%
      );
    }

    .hero-content {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
      width: 90%;
    }

    .hero-content h1 {
      font-size: 36px;
      font-weight: 300;
      letter-spacing: 4px;
      margin-bottom: 12px;
      text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    }

    .hero-content p {
      font-size: 15px;
      color: var(--muted);
      letter-spacing: 2px;
    }

    /* ===== Section: Free Experience ===== */
    .section {
      padding: 32px 24px;
      max-width: 1400px;
      margin: 0 auto;
    }

    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .section-title {
      font-size: 20px;
      font-weight: 400;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .section-title::before {
      content: '';
      width: 3px;
      height: 18px;
      background: var(--accent);
      border-radius: 2px;
    }

    .banner-search {
      display: flex;
      align-items: center;
      background: rgba(255,255,255,0.15);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 24px;
      padding: 8px 20px;
      margin: 16px auto 0;
      max-width: 480px;
      width: 90%;
      transition: all 0.3s;
    }

    .banner-search:focus-within {
      background: rgba(255,255,255,0.25);
      border-color: var(--accent);
      box-shadow: 0 0 20px rgba(255,107,0,0.3);
    }

    .banner-search input {
      background: transparent;
      border: none;
      outline: none;
      color: var(--ink);
      font-size: 14px;
      width: 100%;
      font-family: inherit;
    }

    .banner-search input::placeholder {
      color: rgba(255,255,255,0.6);
    }

    .banner-search button {
      background: var(--accent);
      border: none;
      color: #fff;
      cursor: pointer;
      font-size: 16px;
      padding: 6px 12px;
      border-radius: 16px;
      margin-left: 8px;
      flex-shrink: 0;
      transition: background 0.3s;
    }

    .banner-search button:hover {
      background: var(--accent2);
    }

    /* Hot Search */
    .hot-search {
      margin-top: 14px;
      width: 90%;
      max-width: 560px;
      margin-left: auto;
      margin-right: auto;
    }

    .hot-search-title {
      font-size: 12px;
      color: rgba(255,255,255,0.6);
      margin-bottom: 8px;
      letter-spacing: 1px;
    }

    .hot-search-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      max-height: 66px;
      overflow: hidden;
      transition: max-height 0.4s ease;
    }

    .hot-search-tags.expanded {
      max-height: 500px;
    }

    .hot-tag {
      display: inline-block;
      padding: 4px 12px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 16px;
      font-size: 12px;
      color: rgba(255,255,255,0.85);
      transition: all 0.3s;
      white-space: nowrap;
    }

    .hot-tag:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .hot-search-toggle {
      display: block;
      margin: 8px auto 0;
      background: none;
      border: none;
      color: rgba(255,255,255,0.5);
      font-size: 12px;
      cursor: pointer;
      font-family: inherit;
      transition: color 0.3s;
    }

    .hot-search-toggle:hover {
      color: var(--accent);
    }

    .section-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--accent);
      color: #fff;
      font-size: 12px;
      padding: 3px 10px;
      border-radius: 12px;
      font-weight: 500;
    }

    .section-badge .dot {
      width: 6px;
      height: 6px;
      background: #fff;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }

    /* ===== Carousel ===== */
    .carousel-wrapper {
      position: relative;
      overflow: hidden;
      margin: 0 -24px;
      padding: 0 24px;
    }

    .carousel-track {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 8px;
      scrollbar-width: none;
    }

    .carousel-track::-webkit-scrollbar {
      display: none;
    }

    .carousel-card {
      flex: 0 0 220px;
      scroll-snap-align: start;
      border-radius: var(--card-radius);
      overflow: hidden;
      position: relative;
      cursor: pointer;
      transition: transform 0.3s;
    }

    .carousel-card:hover {
      transform: translateY(-4px);
    }

    .carousel-card img {
      width: 100%;
      height: 293px;
      object-fit: cover;
      transition: transform 0.3s;
    }

    .carousel-card:hover img {
      transform: scale(1.05);
    }

    .carousel-card .card-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 40px 12px 12px;
      background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    }

    .carousel-card .card-title {
      font-size: 13px;
      font-weight: 500;
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .carousel-card .card-tag {
      display: inline-block;
      font-size: 11px;
      color: var(--accent);
      margin-top: 4px;
      background: rgba(255, 107, 0, 0.15);
      padding: 2px 8px;
      border-radius: 4px;
    }

    /* ===== New Releases ===== */
    .new-releases-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .new-releases-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .new-releases-title {
      font-size: 20px;
      font-weight: 400;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .new-releases-title::before {
      content: '';
      width: 3px;
      height: 18px;
      background: var(--accent);
      border-radius: 2px;
    }

    .update-info {
      font-size: 13px;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .update-info .count {
      color: var(--accent);
      font-weight: 600;
      font-size: 18px;
    }

    /* ===== Video Grid ===== */
    .video-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      column-gap: 22px;
      row-gap: 10px;
      max-width: 1080px;
      margin: 0 auto;
      align-items: start;
    }

    .video-card {
      overflow: hidden;
      padding: 14px;
      border-radius: 20px;
      background: #100d0f;
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .video-card:hover {
      transform: none;
      box-shadow: none;
    }

    .video-card,
    .nav-btn,
    .btn-register,
    .search-modal-close,
    .modal-btn-secondary {
      -webkit-user-select: none;
      user-select: none;
    }

    .video-card .thumb {
      position: relative;
      overflow: hidden;
      width: 100%;
      aspect-ratio: var(--video-ratio);
      background: #100d0f;
      border-radius: 16px 16px 0 0;
    }

    .video-card .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s;
    }

    .video-card:hover .thumb img {
      transform: scale(1.05);
    }

    .video-card .thumb .doge-player {
      width: 100%;
      height: 100%;
      aspect-ratio: var(--video-ratio);
      background: #100d0f;
      position: relative;
      overflow: hidden;
    }

    .video-card .thumb .doge-player::before {
      content: '点击播放预览';
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255, 255, 255, 0.88);
      background: radial-gradient(circle at center, rgba(255, 107, 0, 0.18), rgba(0, 0, 0, 0.72));
      font-size: 14px;
      letter-spacing: 0.08em;
      pointer-events: none;
    }

    .video-card .thumb .doge-player.is-loaded::before {
      display: none;
    }

    .video-card .thumb .doge-player > * {
      width: 100% !important;
      height: 100% !important;
    }

    .video-card .thumb .doge-player iframe,
    .video-card .thumb .doge-player video {
      display: block;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .video-card .thumb .doge-player video {
      object-fit: cover !important;
      object-position: center center !important;
      background: #100d0f !important;
    }

    .video-info {
      position: relative;
      padding: 14px 6px 4px;
    }

    .video-title {
      padding-right: 56px;
      color: #fff;
      font-size: 17px;
      font-weight: 700;
      line-height: 1.35;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .video-meta {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-top: 6px;
      color: #d1d5db;
      font-size: 13px;
      line-height: 1.4;
    }

    .preview-badge {
      position: absolute;
      right: 6px;
      top: 15px;
      padding: 4px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255, 91, 130, 0.65);
      background: rgba(255, 91, 130, 0.18);
      color: #fff;
      font-size: 13px;
      line-height: 1.2;
    }

/* ===== Pagination ===== */
    .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 32px;
      padding-bottom: 16px;
    }

    .pagination a, .pagination span {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 36px;
      height: 36px;
      padding: 0 10px;
      border-radius: 6px;
      font-size: 14px;
      color: var(--muted);
      background: var(--bg2);
      border: 1px solid var(--rule);
      transition: all 0.3s;
    }

    .pagination a:hover {
      color: var(--accent);
      border-color: var(--accent);
    }

    .pagination .current {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    .pagination .dots {
      background: transparent;
      border: none;
      color: var(--muted);
    }

    .pagination .next {
      gap: 4px;
    }

    /* ===== Footer ===== */
    .footer {
      background: var(--bg2);
      border-top: 1px solid var(--rule);
      padding: 32px 24px;
      margin-top: 20px;
    }

    .footer-inner {
      max-width: 1400px;
      margin: 0 auto;
      text-align: center;
    }

    .footer-links {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .footer-links a {
      font-size: 13px;
      color: var(--muted);
      transition: color 0.3s;
    }

    .footer-links a:hover {
      color: var(--accent);
    }

    .footer-links .sep {
      color: var(--rule);
    }

    .footer-copy {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.8;
    }

    .footer-copy a {
      color: var(--muted);
      transition: color 0.3s;
    }

    .footer-copy a:hover {
      color: var(--accent);
    }

    /* ===== Back to Top ===== */
    .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 44px;
      height: 44px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.3s;
      z-index: 999;
      box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    }

    .back-to-top.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .back-to-top:hover {
      background: var(--accent2);
      transform: translateY(-2px);
    }

    /* ===== Responsive ===== */

    /* Tablet landscape (769px - 1024px) */
    @media (max-width: 1024px) {
      .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 10px;
        max-width: 720px;
      }
      .hero-banner {
        height: 360px;
      }
      .hero-content h1 {
        font-size: 30px;
      }
      .section {
        padding: 28px 20px;
      }
      .section-title,
      .new-releases-title {
        font-size: 18px;
      }
      .header-inner {
        padding: 0 16px;
      }
      .header-nav {
        gap: 6px;
      }
      .nav-btn {
        padding: 5px 10px;
        font-size: 13px;
      }
      .logo-text {
        font-size: 22px;
      }
    }

    /* Tablet portrait (481px - 768px) */
    @media (max-width: 768px) {
      :root {
        --nav-height: 56px;
      }

      .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 10px;
        max-width: 620px;
      }

      .hero-banner {
        height: 260px;
      }
      .hero-content h1 {
        font-size: 24px;
        letter-spacing: 2px;
      }
      .hero-content p {
        font-size: 13px;
      }

      .banner-search {
        max-width: 400px;
        padding: 7px 16px;
      }
      .banner-search input {
        font-size: 13px;
      }
      .hot-search {
        max-width: 480px;
      }
      .hot-tag {
        font-size: 11px;
        padding: 3px 10px;
      }
      .hot-search-tags {
        gap: 6px;
      }

      .header-auth {
        gap: 6px;
        margin-left: 8px;
      }
      .btn-register {
        padding: 5px 12px;
        font-size: 12px;
      }

      .section {
        padding: 24px 16px;
      }
      .section-title,
      .new-releases-title {
        font-size: 17px;
      }
      .new-releases-header {
        flex-wrap: wrap;
        gap: 8px;
      }
      .update-info {
        font-size: 12px;
      }
      .update-info .count {
        font-size: 16px;
      }

      .footer {
        padding: 24px 16px;
      }
      .footer-copy {
        font-size: 12px;
      }

      .pagination {
        flex-wrap: wrap;
        gap: 4px;
      }
      .pagination a,
      .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
      }
    }

    /* Mobile phone (480px and below) */
    @media (max-width: 480px) {
      :root {
        --nav-height: 58px;
      }

      * {
        -webkit-tap-highlight-color: transparent;
      }

      body {
        -webkit-text-size-adjust: 100%;
      }

      .video-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        max-width: none;
      }
      .video-card {
        width: 100%;
        padding: 10px;
        border-radius: 16px;
      }
      .video-card .thumb {
        border-radius: 12px 12px 0 0;
      }
      .video-title {
        font-size: 15px;
        padding-right: 52px;
      }
      .video-meta {
        gap: 12px;
        font-size: 12px;
      }
      .preview-badge {
        top: 13px;
        right: 4px;
        font-size: 12px;
        padding: 4px 10px;
      }
      .hero-banner {
        height: 200px;
      }
      .hero-content {
        bottom: 24px;
      }
      .hero-content h1 {
        font-size: 20px;
        letter-spacing: 1px;
      }
      .hero-content p {
        font-size: 12px;
        letter-spacing: 1px;
      }

      .logo img {
        height: 32px !important;
      }
      .logo-text {
        font-size: 17px;
      }
      .header-nav {
        display: flex;
        gap: 4px;
      }
      .nav-btn {
        padding: 5px 8px;
        font-size: 12px;
      }

      .banner-search {
        padding: 6px 14px;
        margin-top: 12px;
        width: 95%;
      }
      .banner-search input {
        font-size: 12px;
      }
      .banner-search button {
        font-size: 14px;
        padding: 5px 10px;
      }

      .hot-search {
        width: 95%;
        margin-top: 10px;
      }
      .hot-search-title {
        font-size: 11px;
      }
      .hot-tag {
        font-size: 11px;
        padding: 3px 10px;
      }
      .hot-search-tags {
        gap: 6px;
        max-height: 58px;
      }
      .hot-search-toggle {
        font-size: 11px;
      }

      .header-auth {
        right: 0;
        gap: 4px;
      }
      .btn-register {
        padding: 5px 8px;
        font-size: 12px;
      }
      .btn-category {
        display: inline-flex;
      }

      .section {
        padding: 20px 10px;
      }
      .section-title,
      .new-releases-title {
        font-size: 16px;
      }
      .section-title::before,
      .new-releases-title::before {
        height: 16px;
      }

      .new-releases-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
      }

      .footer {
        padding: 20px 12px;
      }
      .footer-copy {
        font-size: 11px;
      }

      .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 20px;
        right: 16px;
        font-size: 16px;
      }

      .pagination {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
      }
      .pagination a,
      .pagination span {
        min-width: 30px;
        height: 30px;
        font-size: 11px;
        padding: 0 6px;
      }
      .pagination .dots {
        min-width: auto;
        padding: 0 4px;
      }
      .pagination .next {
        padding: 0 10px;
      }
      .search-modal {
        padding: 28px 22px;
        width: calc(100% - 28px);
      }
      .search-modal-close,
      .modal-btn-secondary {
        width: 100%;
      }
    }

    /* Extra small phones (360px and below) */
    @media (max-width: 360px) {
      :root {
        --nav-height: 54px;
      }

      .video-grid {
        width: 100%;
        max-width: none;
      }

      .video-card {
        padding: 8px;
        border-radius: 14px;
      }

      .video-title {
        font-size: 14px;
      }

      .video-meta {
        font-size: 11px;
      }

      .hero-banner {
        height: 160px;
      }
      .hero-content h1 {
        font-size: 17px;
      }
      .hero-content p {
        font-size: 11px;
      }
      .banner-search {
        padding: 5px 10px;
        margin-top: 8px;
        width: 96%;
      }
      .banner-search input {
        font-size: 11px;
      }
      .banner-search button {
        font-size: 12px;
        padding: 4px 8px;
        margin-left: 6px;
      }
      .hot-search {
        width: 96%;
        margin-top: 8px;
      }
      .hot-tag {
        font-size: 10px;
        padding: 2px 8px;
      }
      .hot-search-tags {
        gap: 5px;
        max-height: 50px;
      }
      .logo img {
        height: 28px !important;
      }
      .logo-text {
        font-size: 15px;
      }
      .header-nav {
        gap: 3px;
      }
      .nav-btn {
        padding: 4px 6px;
        font-size: 11px;
      }
      .btn-register {
        padding: 4px 7px;
        font-size: 11px;
      }
      .header-auth {
        gap: 3px;
      }
      .pagination a,
      .pagination span {
        min-width: 28px;
        height: 28px;
        font-size: 10px;
      }
    }

    /* ===== Search Modal ===== */
    .search-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s;
    }

    .search-modal-overlay.show {
      display: flex;
      opacity: 1;
    }

    .search-modal {
      background: var(--bg2);
      border: 1px solid var(--rule);
      border-radius: 16px;
      padding: 40px 48px;
      text-align: center;
      max-width: 360px;
      width: 90%;
      transform: scale(0.9);
      transition: transform 0.3s;
      position: relative;
    }

    .search-modal-overlay.show .search-modal {
      transform: scale(1);
    }

    .search-modal-icon {
      width: 56px;
      height: 56px;
      margin: 0 auto 20px;
      background: rgba(255, 107, 0, 0.15);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      animation: modalPulse 1.5s ease-in-out infinite;
    }

    @keyframes modalPulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.1); opacity: 0.7; }
    }

    .search-modal h3 {
      font-size: 18px;
      font-weight: 500;
      margin-bottom: 10px;
      color: var(--ink);
    }

    .search-modal p {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 24px;
    }

    .search-modal-close {
      padding: 8px 32px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.3s;
    }

    .search-modal-close:hover {
      background: var(--accent2);
    }

    .preview-end-text {
      margin-bottom: 20px;
    }

    .preview-end-text p {
      margin-bottom: 8px;
    }

    .modal-actions {
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .modal-btn-secondary {
      padding: 8px 24px;
      background: transparent;
      color: var(--muted);
      border: 1px solid var(--rule);
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      font-family: inherit;
      transition: all 0.3s;
    }

    .modal-btn-secondary:hover {
      color: #fff;
      border-color: var(--accent);
      background: rgba(255, 107, 0, 0.08);
    }

    .copy-url-display {
      display: none;
      margin-top: 14px;
      padding: 10px 12px;
      border: 1px solid var(--rule);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.05);
      color: #fff;
      font-size: 13px;
      line-height: 1.5;
      word-break: break-all;
      user-select: text;
    }

    .copy-url-display.show {
      display: block;
    }

    /* Safe area for notched phones */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
      .footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
      }
      .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }
    }
