body {

      margin: 0;
      padding: 0;
      scroll-behavior: smooth; /* اسکرول نرم */
    }
    .container {
      max-width: 700px;
      margin: 40px auto;
      background: #ffffff;
      border-radius: 20px;
      box-shadow: 0 12px 35px rgba(0,0,0,0.1);
      padding: 30px;
      box-sizing: border-box;
      position: relative;
      overflow: hidden;
    }
    .search-input {
      display: block;
      width: 100%;
      padding: 16px 20px;
      border: 2px solid #e2e8f0;
      border-radius: 14px;
      margin-bottom: 25px;
      font-size: 18px;
      background: #f9fafb;
      box-sizing: border-box;
      transition: border 0.2s, box-shadow 0.2s;
    }
    .search-input:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
    }
    .buttons {
      display: flex;
      gap: 12px;
      margin-bottom: 25px;
    }
    .buttons button {
      flex: 1;
      padding: 14px;
      border: none;
      border-radius: 12px;
      font-size: 17px;
      cursor: pointer;
      background: #f0f0f0;
      transition: background 0.2s, transform 0.2s;
    }
    .buttons button:hover {
      background: #dbeafe;
      transform: translateY(-2px);
    }
    .flash-card {
      background: #f9fbff;
      border-radius: 16px;
      padding: 24px;
      margin-bottom: 25px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
transition: all 0.3s ease-in-out;
      animation: fadeInUp 0.5s ease; /* انیمیشن ظاهر شدن کارت */
    }
    .flash-card:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    }
    .word {
      font-weight: 800;
      font-size: 24px;
      color: #0f172a; /* سرمه‌ای پررنگ برای تاکید */
      margin-bottom: 10px;
    }
    .translation {
      font-size: 20px;
      color: #334155;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .example {
      font-size: 16px;
      color: #475569;
      margin-bottom: 8px;
      font-style: italic;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 18px;
      flex-wrap: wrap;
      gap: 10px;
    }
    .actions span {
      cursor: pointer;
      font-weight: 500;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: color 0.2s;
user-select: none; /* 👈 جلوگیری از انتخاب متن */
  -webkit-user-select: none;
    }
    .actions span.play { color: #0d9488; }
    .actions span.play:hover { color: #0f766e; }
    .actions span.favorite { color: #fbbf24; }
    .actions span.favorite:hover { color: #f59e0b; }
    @media (max-width: 500px) {
      .word { font-size: 20px; }
      .translation { font-size: 18px; }
      .example { font-size: 15px; }
      .actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
    }
    .spinner {
      width: 40px;
      height: 40px;
      border: 4px solid #3b82f6;
      border-top-color: transparent;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 100px auto;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    @keyframes fadeInUp {
      0% { opacity: 0; transform: translateY(20px); }
      100% { opacity: 1; transform: translateY(0); }
    }