:root {
  --accent-blue: #4f6ef7;
  --bg-card-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-bright: #ffffff;
  --text-dim: #a0a0a0;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-home {
  & .playlist-collection-title {
    margin-bottom: 2rem;
  }

  & .playlist-container {
    gap: 0;
  }
}


.tracks-of-the-day {
  /* padding: 40px 20px; */
  /* padding: 0 0 2rem 0; */
  margin: 0 0 2rem 0;
  max-width: 1200px;
  /* margin: 0 auto; */

  & .track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
  }

  & .track-card {
    /* background: var(--bg-card-glass); */
    background: var(--background-color-gradient-blue);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;

    /* &:hover {
      transform: translateY(-8px);
      background: rgba(255, 255, 255, 0.07);
      border-color: rgba(79, 110, 247, 0.5);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);

      & .track-meta-line {
        width: 100%;
      }
    } */

    & .track-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;

      & .track-year {
        font-family: 'Monaco', 'Consolas', monospace;
        font-weight: 800;
        font-size: 1.2rem;
        color: var(--accent-blue);
      }

      & .track-meta-line {
        height: 1px;
        width: 30px;
        background: linear-gradient(90deg, var(--accent-blue), transparent);
        transition: var(--transition);
      }
    }

    & .track-body {
      & .track-title {
        font-size: 1.4rem;
        margin: 0 0 6px 0;
        color: var(--text-bright);
        font-weight: 600;
        line-height: 1.2;

        /* ADD THESE TWO LINES */
        overflow-wrap: break-word;
        /* Standard way to break long words */
        word-break: break-word;
        /* Support for older browsers */
      }

      & .track-artist {
        color: var(--text-dim);
        font-size: 0.95rem;
        margin-bottom: 20px;
        display: block;
      }

      & .dna-tag {
        display: flex;
        gap: 12px;
        background: rgba(79, 110, 247, 0.08);
        border: 1px solid rgba(79, 110, 247, 0.15);
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 20px;

        & .dna-icon {
          filter: drop-shadow(0 0 4px var(--accent-blue));
        }

        & .dna-text {
          font-size: 0.85rem;
          color: #d1d5db;
          line-height: 1.5;
        }
      }
    }

    & .track-footer {
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 10px;

      & .thumbnail-wrapper {
        width: 64px;
        height: 48px;
        border-radius: 4px;
        overflow: hidden;
        border: 1px solid var(--border-glass);

        & img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          opacity: 0.7;
        }
      }

      & .btn-listen {
        background: var(--accent-blue);
        color: #ffffff;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-decoration: none;
        transition: var(--transition);

        &:hover {
          filter: brightness(1.2);
          box-shadow: 0 0 15px rgba(79, 110, 247, 0.4);
        }
      }
    }
  }
}

@media (max-width: 900px) {
  & .section-title {
    margin: 0 1rem 1rem 1rem;
  }

  & .tracks-of-the-day {
    padding: 1rem;
  }
}
