/* Global Reset */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: "Poppins", sans-serif;
   scroll-behavior: smooth;
   overflow-x: hidden;
}

body {
   background-color: #420000;
   color: white;
}

/* Container Layout */
.container {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 20px;
   padding: 10px 20px;
   max-width: 100%;
}

a {
   text-decoration: none;
}

/* Header */
header {
   background-color: #850000;
   width: 100%;
   z-index: 999;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 10px 200px;
}

.logo {
   color: white;
   text-transform: uppercase;
   font-weight: 750;
   font-size: 1.8em;
}

.profile {
   color: white;
   font-size: 1.5em;
   margin-right: 10px;
}

.profile a:hover {
   color: #ff8a40;
}

.search {
   width: max-content;
   display: flex;
   align-items: center;
   padding: 14px;
   border-radius: 50px;
   background-color: #420000;
}

.search-input {
   font-size: 1em;
   color: white;
   margin-left: 14px;
   outline: none;
   border: none;
   background: transparent;
   width: 700px;
   flex: 1;
}

.search-icon {
   color: rgba(0, 0, 0, 0.25);
}

/* Topic Buttons */
.topic-buttons {
   display: flex;
   gap: 10px;
   overflow-x: auto;
   padding-bottom: 10px;
   width: 100vw;
   max-width: 100vw;
   scroll-behavior: smooth;
}

.button {
   background-color: #850000;
   color: white;
   padding: 10px;
   border-radius: 5px;
   font-weight: bold;
   white-space: nowrap;
   transition: background-color 0.3s, transform 0.2s ease-in-out;
   flex: 0 0 auto;
   max-width: 100%;
   text-align: center;
}

.button:hover {
   background-color: #ff8a40;
   transform: translateY(-2px);
}

/* Video Container */
.video-container {
   display: flex;
   align-items: center;
   text-align: center;
   margin: 0 auto;
   padding: 20px;
}

video {
   width: 740px;
   height: 500px;
   display: block;
   background-color: black;
}

/* Title */
.entry-title {
   font-size: 1.3em;
   padding: 10px;
   word-wrap: break-word;
   overflow-wrap: break-word;
   white-space: normal;
   text-align: center;
}

/* More Videos Section */
.morevideo-text {
   font-size: 1.3em;
   margin-top: 20px;
   text-align: center;
}

/* Video List Grid */
.video-list {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 20px;
   width: 100%;

   padding: 10px;
   justify-items: center;
}

/* Video Cards */
.video-card {
   background-color: #850000;
   padding: 10px;
   border-radius: 8px;
   text-align: center;
   transition: transform 0.3s, box-shadow 0.3s;
   width: 100%;
   height: auto;
}

.video-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.video-card img.thumb {
   width: 100%;
   max-width: 350px;
   height: 200px;
   object-fit: cover;
   border-radius: 8px;
}

.video-card h2 {
   font-size: 1rem;
   font-weight: 500;
   margin: 10px 0;
   word-wrap: break-word;
}

/* Footer */
.footer {
   text-align: center;
   background-color: #850000;
   padding: 2em;
   color: white;
   width: 100%;
}

.footer-title {
   font-size: 1.4em;
   font-weight: 300;
}

.footer a {
   color: #fff;
}

.footer a:hover {
   text-decoration: underline;
}

/* Login Box */
.login-box {
   display: flex;
   justify-content: center;
   align-items: center;
   min-height: 100vh;
   background-color: #420000;
   flex-direction: column;
   width: 440px;
   height: 480px;
   padding: 30px;
}

.login-header {
   text-align: center;
   margin: 20px 0 40px 0;
}

.login-header span {
   color: white;
   font-size: 1.6em;
   font-weight: 600;
}

.input-box .input-field {
   width: 100%;
   height: 60px;
   font-size: 1em;
   padding: 0 25px;
   margin-bottom: 15px;
   border-radius: 30px;
   border: none;
   box-shadow: 0px 5px 10px 1px #850000;
   outline: none;
   transition: 0.3s;
}

.input-field:focus {
   width: 105%;
}

::placeholder {
   font-weight: 500;
   color: #222;
}

.forget {
   display: flex;
   justify-content: space-between;
   margin-bottom: 40px;
}

/* Pagination */
.pagination {
   text-align: center;
   padding: 20px 0;
}

.pagination a {
   margin: 0 5px;
   padding: 8px 12px;
   text-decoration: none;
   background-color: #850000;
   color: white;
   border-radius: 5px;
}

.pagination a.active {
   background-color: #850000;
}

.pagination a:hover {
   background-color: #ff8a40;
}

/* Responsive Styles */
@media (max-width: 1023px) {
   header {
      padding: 12px 20px;
   }

   .container {
      padding: 10px;
   }
}

@media (max-width: 641px) {
   body {
      font-size: 8px;
   }

   .button {
      padding: 10px 15px;
      font-size: 0.9em;
   }

   .search {
      padding: 7px;
   }

   .search-input {
      font-size: 10px;
      border-radius: 10px;
      width: 100%;
   }

   .video-card img.thumb {
      height: 260px;
      width: 363px;
   }

   .video-card h2 {
      font-size: 1.2rem;
   }

   .video-container video {
      width: 100%;
      height: auto;
   }
}

@media (max-width: 300px) {
   body {
      font-size: 7px;
   }

   .button {
      width: 100%;
      margin-bottom: 5px;
   }
}
