*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

section {
  padding: clamp(2rem, 10vw, 7em) 0;
}

.container {
  width: 85%;
  max-width: 65em;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
}

.split {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  justify-content: center;
}

.split > * {
  flex-basis: clamp(12em, 30vw, 30%);
  min-width: 12em;
}

.spacing > * + * {
  margin-top: var(--spacer, 2rem);
}

.button {
  display: inline-block;
  text-decoration: none;
  color: var(--clr-text, #fff);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.125rem;
  padding: 0.5em 1.25em;
  background: var(--clr-accent, blue);
  border-radius: 0.25em;
  transition: transform 250ms ease-in-out, opacity 250ms linear;
}

button:hover,
button:focus {
  transform: scale(1.1);
  opacity: 0.9;
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, calc(5vw + 1rem), 4rem);
  line-height: 1;
  color: #17353d;
  margin-bottom: 1rem;
}

.hero {
  color: white;
  text-align: center;
  padding: clamp(2rem, 15vw, 15em) 0;
  background: #222;
  --clr-accent: #faa700;
}

@supports (background-blend-mode: multiply) {
  .hero {
    background: url(../img/Perms_landing_page.jpg);
    background-size: cover;
    background-color: #222;
    min-height: 100vh;
    background-blend-mode: screen;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    filter: brightness(0.9);
  }
}

.logo {
  opacity: 0.9;
}

.featured {
  background: #eee;
  padding: 1em 0 0;
}

.featured_img {
    border-radius: 15px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;  
  aspect-ratio: 1;    
}

.streaming_links {
  display: flex;
  justify-content: center;
  gap: 2em;
  margin-bottom: 2em;
}

.streaming_logo {
  width: clamp(5em, 12vw, 8em);
  height: auto;
}

.featured_item {
  display: block;
  position: relative;
  transform: scale(0.85);
  transition: transform 250ms ease-in-out;
  text-decoration: none;
  color: #333;
  text-align: center;
  line-height: 1.2;
}

.featured_item:hover,
.featured_item:focus {
  transform: scale(1);
}

.featured_item:hover .featured_details,
.featured_item:focus .featured_details {
  opacity: 1;
  text-shadow: 0 0 2em white;
}

.featured_item::after {
  content: '';
  position: absolute;
  top: -5%;
  left: 5%;
  padding: 100% 100% 0 0;
  border-radius: 50%;
  background: #2193b0;
  z-index: -1;
}

.featured_details {
  opacity: 0;
  margin-top: 0.5em;
  transition: opacity 250ms linear;
}

.featured_details span {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.video-thumb-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 1em;
}

.video_details {
  margin-top: 0.8em;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}

.video-thumb {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 2em;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Play button overlay */
.video-thumb::after {
  content: '▶';
  position: absolute;
  font-size: 36px;
  color: rgba(255, 255, 255, 0.8);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 180ms ease;
  opacity: 0.7;
  backdrop-filter: blur(4px);
}

.video-thumb img {
  width: 200px;
  height: auto;
  display: block;
  position: relative;
  border-radius: 6px;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1024px) {
  .video-thumb img {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .video-thumb img {
    width: 140px;
  }
}

@media (max-width: 480px) {
  .video-thumb img {
    width: 100px;
  }
}

.video-thumb:hover img,
.video-thumb:focus img {
  transform: translateY(-6px) scale(1.03);
  opacity: 0.98;
  outline: none;
}

.video-thumb.active img {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transform: scale(1.04);
}

.lastChild {
  margin-bottom: 2em;
}

.player-card {
  width: 900px;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .player-card {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .player-card {
    width: 95%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .player-card {
    width: 100%;
    border-radius: 0;
    margin: 0;
  }
}

.video-wrapper {
  position: relative;
  background: #000;
  height: 100%;
}

#player {
  width: 100%;
  height: calc(100% - 60px);
  min-height: 400px;
  pointer-events: none;
}

.overlay-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.overlay-play i {
  font-size: 36px;
  color: #fff;
  margin-left: 4px;
}

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

.controls-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 12px 20px;
  background: rgba(20, 20, 20, 0.9);
  gap: 10px;
}

@media (max-width: 1024px) {
  .controls-bar {
    flex-wrap: wrap;  
  }
}

@media (max-width: 480px) {
  .controls-bar {
    flex-direction: column;  
  }
}

.btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.time,
.volume-container,
.seek-container {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
}

.time {
  gap: 5px;
}

.seek-container,
.seek-container .slider {
  width: 100%;
}

.volume-container {
  padding-right: 20px;
}

.slider {
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0.1) 0%);
  outline: none;
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}

.control-select {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.control-select option {
  background: #000000;
  color: #fff;
}

.fullscreen-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.player-card:-webkit-full-screen {
  width: 100% !important;
  height: 100% !important;
}

/* Screen reader only - visible to assistive tech, hidden from sighted users */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Footer Styles */
.site-footer {
  background: #222;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  min-height: 300px;
}

.site-footer .footer-nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.5rem;
}

.site-footer .footer-nav a:hover {
  text-decoration: underline;
}

@supports (background-blend-mode: multiply) {
  .site-footer {
    background: url(../img/perms_main_page.jpg);
    background-size: cover;
    background-color: #222;
    min-height: 300px;
    background-blend-mode: screen;
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: center top;
    filter: brightness(0.7);
  }
}

/* Touch-friendly sizes for touch devices */
@media (pointer: coarse) {
  .btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
  }

  .slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
  }
}

/* Mobile background optimization */
@media (max-width: 768px) {
  @supports (background-blend-mode: multiply) {
    .hero {
      background-attachment: scroll;
    }
  }
}



