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

:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --accent-color: #45b7d1;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --text-primary: #333;
  --text-secondary: #666;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--light-bg);
  padding-bottom: 100px;
}

/* Audio Player Styles */
.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 20px;
}

.player-content {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.album-cover {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.track-info {
  flex: 1;
}

.current-track {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.current-artist {
  font-size: 12px;
  color: var(--text-secondary);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.control-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.control-btn:hover {
  transform: scale(1.1);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-slider {
  width: 80px;
}

.stream-select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: white;
  min-width: 200px;
}

.visualizer {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 30px;
  margin-left: 20px;
}

.visualizer .bar {
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: visualize 1s ease-in-out infinite alternate;
}

.visualizer .bar:nth-child(2) {
  animation-delay: 0.1s;
}
.visualizer .bar:nth-child(3) {
  animation-delay: 0.2s;
}
.visualizer .bar:nth-child(4) {
  animation-delay: 0.3s;
}
.visualizer .bar:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes visualize {
  from {
    height: 5px;
  }
  to {
    height: 25px;
  }
}

/* Navigation Styles */
.navbar {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  color: var(--primary-color);
  font-size: 24px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-color);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-bottom: 60px;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.main-player {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.player-display {
  display: flex;
  align-items: center;
  gap: 30px;
}

.now-playing h3 {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.track-display .track-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.track-display .track-artist {
  color: var(--text-secondary);
}

.album-art {
  position: relative;
  width: 120px;
  height: 120px;
}

.album-art img {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Stream Grid */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stream-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stream-card:hover {
  transform: translateY(-5px);
  border-color: var(--stream-color);
}

.stream-icon {
  width: 60px;
  height: 60px;
  background: var(--stream-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: white;
  font-size: 24px;
}

.stream-card h4 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.stream-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Sidebar Widgets */
.sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.widget h3 {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-item {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-item h5 {
  margin-bottom: 5px;
}

.news-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
}

.news-item a:hover {
  color: var(--primary-color);
}

.news-item p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.news-item small {
  color: var(--text-secondary);
  font-size: 11px;
}

/* Page Headers */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Stream Detail Cards */
.streams-container {
  display: grid;
  gap: 30px;
}

.stream-detail-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stream-header {
  padding: 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stream-info h2 {
  margin-bottom: 10px;
}

.play-stream-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.play-stream-btn:hover {
  background: white;
  color: var(--text-primary);
}

.stream-stats {
  padding: 20px 30px;
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.stat strong {
  color: var(--text-primary);
}

/* Community Styles */
.community-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.post-form-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.post-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #ff5252;
}

.post-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

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

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.post-actions {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.like-btn,
.comment-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.like-btn:hover {
  color: var(--primary-color);
  background: rgba(255, 107, 107, 0.1);
}

.comment-btn:hover {
  color: var(--secondary-color);
  background: rgba(78, 205, 196, 0.1);
}

/* Weather Styles */
.weather-container {
  display: grid;
  gap: 30px;
}

.current-weather {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.city-weather-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

/* News Styles */
.news-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.news-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card h3 {
  margin-bottom: 15px;
}

.news-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--primary-color);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

/* Loading Animation */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .sidebar-widgets {
    order: -1;
  }

  .player-content {
    flex-wrap: wrap;
    gap: 15px;
  }

  .stream-select {
    min-width: 150px;
  }

  .visualizer {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .player-display {
    flex-direction: column;
    text-align: center;
  }

  .community-container {
    grid-template-columns: 1fr;
  }

  .stream-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .stream-stats {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 20px 15px;
  }

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

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

  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
