/* Import Google Font and Font Awesome */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* Root variables */
:root {
  --primary-color: #1877f2;
  --background-color: #E5E4E2;
  --text-color: #1c1e21;
  --subtext-color: #606770;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark {
  --background-color: #18191a;
  --text-color: #e4e6eb;
  --subtext-color: #b0b3b8;
  --white: #242526;
  --shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

/* Body */
body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 24px;
}

.header-content a {
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
}

.site-logo {
  height: 50px;
  width: auto;
  border-radius: 6px;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.theme-toggle:hover {
  color: #ffdd57;
}

/* Layout */
.container {
  display: flex;
  justify-content: center;
  max-width: 750px; /* decreased from 1000px to make the video narrower */
  margin: 10px auto;
  gap: 20px;
  padding: 0 15px;
}

/* Main video */
.main-video {
  flex: 1;
  background: var(--white);
  padding: 10px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

/* Responsive iframe wrapper */
.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* standard 16:9 ratio */
  border-radius: 8px;
  overflow: hidden;
  background: black;
}

.iframe-wrapper iframe,
.main-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
}

/* Video info */
.video-info {
  margin-top: 10px;
}
.video-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary-color);
}
.video-description {
  font-size: 13px;
  color: var(--primary-color);
}

/* Mobile specific */
@media (max-width: 768px) {
  .video-description {
    font-size: 10px;
  }
}

/* Locked overlay */
.locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.unlock-btn {
  background-color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 20px;
  color: white;
}

/* Adblock modal */
#adblock-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  z-index: 9999;
  text-align: center;
  padding: 40px 20px;
  overflow: auto;
}

#adblock-message h2 {
  margin-top: 100px;
  font-size: 28px;
}

#adblock-message p {
  font-size: 18px;
  margin-top: 15px;
}

#adblock-message button {
  margin-top: 30px;
  padding: 10px 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

/* Mobile layout */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    max-width: 100%;
  }
  .main-video {
    order: 1;
  }
}
