/* ============================================================
   FLUX RSS — Music Pop Rock
   Présentation éditoriale + cartes variées
   ============================================================ */

.rss-section {
  max-width: 1180px;
  margin: 35px auto;
  padding: 25px;
  background: rgba(12, 12, 12, 0.96);
  border-radius: 16px;
  box-shadow: 6px 8px 22px rgba(0, 0, 0, 0.65);
}

.rss-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.rss-section h2 {
  margin: 0;
  color: #1e90ff;
  font-size: 2rem;
  text-shadow: 2px 2px 5px #000;
}

.rss-intro {
  margin: 5px 0 0;
  color: #ddd;
}

.rss-badge {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid #ff8c00;
  border-radius: 30px;
  color: #ffb15a;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#rss-status {
  padding: 12px 15px;
  margin-bottom: 18px;
  border-left: 4px solid #ff8c00;
  background: rgba(255, 140, 0, 0.08);
  color: #ddd;
  border-radius: 6px;
}

#rss-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.rss-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: linear-gradient(145deg, #202020, #303030);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 13px;
  box-shadow: 4px 5px 13px rgba(0,0,0,0.65);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.rss-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30,144,255,0.55);
  box-shadow: 7px 10px 22px rgba(0,0,0,0.8);
}

.rss-thumb {
  position: relative;
  height: 175px;
  overflow: hidden;
  background: #171717;
}

.rss-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.rss-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.3rem;
  background:
    radial-gradient(circle at 25% 25%, rgba(30,144,255,.45), transparent 32%),
    radial-gradient(circle at 75% 75%, rgba(255,69,0,.5), transparent 35%),
    linear-gradient(135deg, #171717, #353535);
}

.rss-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.rss-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  color: #aaa;
  font-size: .78rem;
}

.rss-category {
  color: #ff9b32;
  font-weight: bold;
  text-transform: uppercase;
}

.rss-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rss-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.rss-title a {
  color: #fff;
  text-decoration: none;
}

.rss-title a:hover {
  color: #55aaff;
}

.rss-description {
  margin: 0 0 15px;
  color: #d0d0d0;
  font-size: .91rem;
  line-height: 1.5;
}

.rss-read {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 7px;
  background: linear-gradient(135deg, #1e90ff, #ff4500);
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: .85rem;
}

.rss-read:hover {
  filter: brightness(1.12);
}

.rss-note {
  margin: 18px 0 0;
  color: #999;
  font-size: .78rem;
  text-align: center;
}

.rss-error {
  grid-column: 1 / -1;
  padding: 20px;
  border-radius: 10px;
  background: rgba(255, 69, 0, .08);
  color: #ddd;
}

@media (max-width: 950px) {
  #rss-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .rss-section {
    width: auto;
    margin: 20px 12px;
    padding: 17px;
  }

  .rss-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .rss-section h2 {
    font-size: 1.55rem;
  }

  #rss-feed {
    grid-template-columns: 1fr;
  }

  .rss-thumb {
    height: 190px;
  }
}
