@import url('https://fonts.maateen.me/kalpurush/font.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }

body {
    background-color: #0d0d0d;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
}

h1 { margin-bottom: 20px; font-size: 2rem; }

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.video-card {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    position: relative;
}

.video-card:hover { transform: scale(1.05); }

.share-options {
    display: none;
    position: absolute;
    background: rgba(34, 34, 34, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    width: 180px;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.share-options button {
    background: none;
    border: none;
    color: white;
    width: 100%;
    text-align: left;
    padding: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.share-options button:hover { background: #444; }

.video-card img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.share-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 12px;
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    margin-top: 8px;
}

.share-btn:hover { background: #555; }

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden; opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.active { visibility: visible; opacity: 1; }

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
}

.modal iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: -10px; right: -10px;
    background: red; color: white;
    border: none;
    font-size: 20px;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification {
    position: fixed;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    animation: fadeInOut 3s ease-in-out;
}
.channel-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #181818; /* Dark Background */
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.channel-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-details {
    display: flex;
    flex-direction: column;
    color: white;
}

.channel-name {
    font-size: 18px;
    font-weight: bold;
}

.verified-badge {
    color: #3498db; /* Blue Checkmark */
    font-size: 16px;
}

.channel-username {
    font-size: 14px;
    color: #aaa;
}

.subscriber-count {
    font-size: 14px;
    color: #bbb;
    margin: 5px 0;
}

.subscribe-btn {
    background: #ff0000; /* YouTube Red */
    color: white;
    font-size: 14px;
    font-weight: bold;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.subscribe-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
}

.subscribe-btn:active {
    background: #b30000;
    transform: scale(0.95);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
              }
.viewer-counter {
    position: absolute;
    top: 5px; 
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
}
.info-box {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    font-size: 18px;
    color: #ff0000;
}

/* Responsive */
@media (max-width: 768px) {
    .info-box {
        font-size: 13px;
    }
}

.alert-box {
  display: flex;
  align-items: center;
  background-color: #1f7a1f;
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.alert-box i {
  margin-right: 10px;
  font-size: 18px;
}

.alert-box .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  margin-left: auto;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Notification Bell */
.notification-bell {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #1f7a1f;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.notification-bell:hover {
  background-color: #176517;
}

.alert-box2 {
  display: flex;
  align-items: center;
  background-color: #1f7a1f;
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 40px;
  right: 20px;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.alert-box2 i {
  margin-right: 10px;
  font-size: 18px;
}

.alert-box2 .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  margin-left: auto;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-section {
    width: 100%;
    margin: auto;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 8px;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    padding: 10px;
}

.comment {
    background: #252525;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    word-wrap: break-word;
}

textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-top: 10px;
    resize: none;
    background: #333;
    color: #fff;
}

button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #00acee;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #0086c0;
}
