/* Live Stream Section */
.live-stream-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.stream-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.stream-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stream-info {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.stream-info h3 {
    margin: 0;
    color: #333;
}

.stream-stats {
    display: flex;
    gap: 20px;
}

.stream-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

/* Live Updates Section */
.live-updates-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.updates-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#refresh-btn {
    background: #1775F1;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

#refresh-btn:hover {
    background: #0C5FCD;
}

.updates-feed {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.update-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 15px;
}

.update-item:last-child {
    border-bottom: none;
}

.update-time {
    font-weight: 600;
    color: #1775F1;
    min-width: 70px;
}

.update-content p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 991px) {
  header {
    padding: 20px 50px;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }

  header .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0;
  }

  .banner {
    padding: 100px 50px;
  }

  .banner .play {
    left: 50px;
    font-size: 1em;
  }

  .play img {
    margin-right: 10px;
    max-width: 40px;
  }

  .trailer video {
    max-width: 90%;
  }
}

@media (max-width: 600px) {
  header {
    padding: 20px;
  }

  .search {
    position: relative;
    width: 250px;
    height: 40px;
  }

  .banner {
    padding: 120px 30px 100px;
    flex-direction: column;
  }

  .banner .content {
    margin-top: 18%;
  }

  .banner .content h4 {
    font-weight: 300;
    font-size: 2px;
  }

  .banner .content p {
    font-size: 10px;
    font-weight: 200;
    line-height: 1.2em;
  }

  .banner .carousel-box {
    max-width: 450px;
    max-height: 300px;
  }

  .carousel {
    position: relative;
    height: 280px;
    perspective: 1500px;
  }

  .carousel .carousel-item {
    margin-top: 10%;
    width: 150px;
    cursor: pointer;
  }

  .carousel .carousel-item img {
    max-width: 140px;
    border-radius: 10px;
    transform: translateX(8px) translateY(-100px);
    object-fit: cover;
    object-position: center;
  }

  h3 {
  font-size: 1.5rem;
}
}

.update-content .highlight {
    color: #1775F1;
    font-weight: 600;
}

/* Quick Stats Section */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

.stat-card h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 16px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 14px;
    color: #666;
}

.stat-change span {
    color: #28a745;
    font-weight: 600;
}

.stat-change .negative {
    color: #FC3B56;
}

/* Recent Results Section */
.recent-results {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

.recent-results h3 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.result-item {
    border-left: 4px solid #28a745;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 0 5px 5px 0;
}

.result-item.pnp {
    border-left-color: #fd7e14;
}

.result-item .constituency {
    font-weight: 600;
    margin-bottom: 5px;
}

.result-item .candidate {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.result-item .votes {
    font-weight: 600;
}

/* Animation for new updates */
@keyframes highlightUpdate {
    0% { background-color: rgba(24, 117, 240, 0.1); }
    100% { background-color: transparent; }
}

.new-update {
    animation: highlightUpdate 2s ease-out;
}