
  html, body {
    min-height: 100vh;   /* 최소 화면 높이 확보 */
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: #131212;
  }
  
  body {
    display: flex;
    flex-direction: column;
  }
  
  main {
    flex: 1;   /* 콘텐츠 영역이 남은 공간 차지 */
  }  
  header {
    background: #333;
    color: #cf1414;
    padding: 20px;
    text-align: center;
  }

  .search-input {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
  }
  
  .search-button {
    padding: 6px 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
  }
  
  .img_lb{
	  max-width: 82%;
  }
  
  .info_img{
	  display: flex;
	  width: 100%;
	  flex-wrap: wrap;
	  gap: 20px;
  }
  
  .info_img1{
	  width: calc(33.33333333% - 14px);
  }
  
  .info_img1 img{
	  width: 100%;
	  display: block;
  }

  .hamburger {
    display: none;
    font-size: 26px;
    color: red;
    cursor: pointer;
    margin: 10px auto;
    text-align: center;
  }
  
  @media (max-width: 768px) {
    .hamburger {
      display: block;
    }
  
    nav {
      display: none;
      flex-direction: column;
      background-color: #111;
      padding: 10px;
    }
  
    nav.active {
      display: flex;
    }
  
    nav a {
      padding: 10px;
      border-bottom: 1px solid #333;
    }
  
    nav form {
      padding: 10px;
    }
  }
  
  nav {
    margin-top: 10px;
  }
  
  nav a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
  }
  
  nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #cf1414;
    transition: width 0.3s ease;
    max-width: 100%;
  }

  

  nav a:hover {
    color: #cf1414;
  }
  
  nav a:hover::after {
    width: 100vw;
  }
  
  main {
    padding: 40px 300px;
  }
  
  
  footer {
    background: #222;
    color: white;
    padding: 10px;
    text-align: center;
  }
  
  .grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);  /* 5개 고정 */
    gap: 20px;
    max-width: 89%;        /* 전체 그리드 너비 제한 */
    margin: 0 auto;           /* 좌우 중앙 정렬 */
    padding: 40px 20px;
  }
  
  .grid-item {
    width: 100vw;
    aspect-ratio: 2 / 3;       /* 약간 더 날씬한 포스터 비율 */
    border-radius: 8px;
    overflow: hidden;
    max-width: 230px;
    position: relative;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  
  .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
  }
  
  .grid-item:hover {
    transform: scale(1.02);
  }
  
  .title-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    width: 100%;
    padding: 8px;
    font-size: 14px;
    text-align: center;
  }
  /*  모바일: 2개 */
@media (max-width: 767px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    padding: 20px;
  }
  .quick-links>a{
    width: 6.5rem;
    font-size: 12px;
    height: 25px;
    line-height: 25px;
  }
  .grid-item {
    max-width: 100% !important; /* 고정 크기 해제 */
    width: 100%;
  }
}

/*  태블릿: 3개 */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    padding: 30px;
  }
  .grid-item {
    max-width: 100% !important; /* 고정 크기 해제 */
    width: 100%;
  }
}

/*  데스크탑 이상: 5개 유지 */
@media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(5, 1fr);
  }
}
  .slide_container {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 100px 0 0 0;
}
.container {
    width: 80%;
}
.slider-wrapper{
    position: relative;
}
.slider-wrapper .slide-button {
    position: absolute;
    top: 50%;
    height: 40px;
    width: 40px;
    color: #fff;
    background-color: #474444;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    outline: none;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    z-index: 999;
}
.slider-wrapper .slide-button:hover{
    background: #444;
}

.slider-wrapper .slide-button#prev-slide {
    left: -20px;
    display: none;
}

.slider-wrapper .slide-button#next-slide {
    right: -20px;
}

.slider-wrapper .image-list {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(10, 1fr);
    font-size: 0;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

.slider-wrapper .image-list::-webkit-scrollbar {
    display: none;

}

.slider-wrapper .image-list .image-item {
    width: 325px;
    height: 450px;
    object-fit: cover;
}

.container .slider-scrollbar {
    height: 24px;
    width: 100%;

    display: flex;
    align-items: center;
}

.slider-scrollbar .scrollbar-track {
    height: 2px;
    width: 100%;
    background-color: #ccc;
    position: relative;
    border-radius: 4px;
}

.slider-scrollbar:hover .scrollbar-track {
    height: 4px;
}

.slider-scrollbar .scrollbar-thumb {
    position: absolute;
    height: 100%;
    width: 50%;
    background-color: #000;
    border-radius: inherit;
    cursor: grab;
}

.slider-scrollbar .scrollbar-thumb:active {
    cursor: grabbing;
    height: 8px;
    top: -2px;
}

.slider-scrollbar .scrollbar-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    bottom: -10px;
}
.image-list {
  display: flex;
  gap: 10px;
}
@media (max-width: 767px) {
  .slider-wrapper .image-item {
    width: 120px !important;
    height: auto !important;
  }

  .slider-wrapper .slide-button {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .slider-wrapper {
    padding: 0 10px;
  }

  .slider-scrollbar {
    margin-top: 10px;
  }
  .slider-wrapper .image-list {
    gap: 1px;
  }
}

/* 기본 이미지 스타일 */
.image-item {
  width: 150px;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  border-radius: 10px;
}

/* 전체 리스트에 hover 되었을 때 일괄 blur */
.image-list:hover .image-item {
  filter: blur(1px) brightness(0.2);
  transform: scale(1);
  transition: all 0.3s ease;
}

/* 마우스를 올린 이미지에는 blur 제거 + 확대 */
.image-list .image-item:hover {
  filter: blur(0) brightness(1);
  transform: scale(1.1); /* 살짝 확대 */
  z-index: 2;             /* 겹침 방지 */
  border-radius: 10px;
}
.quick-access-wrapper {
  text-align: center;
  margin: 30px auto 10px;
}

.quick-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.quick-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-button {
  background-color: #444;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 20px;
  transition: background-color 0.3s;
  width: 120px;
  height: 30px;
}

.quick-button:hover {
  background-color: #cf1414;
}
/* 메인 전체 콘텐츠: info_text + 배너 */
.main_content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px 20px;
  max-width: 80%;
  margin: 0 auto;
}

/* 배너가 없을 때 중앙 정렬 + info_text 넓게 */
.main_content.only-info {
  justify-content: center;
  font-size: 10px;
}

.main_content.only-info .info_text {
  max-width: 80%;
  flex: none;
}

/* 좌측 텍스트 섹션 */
.info_text {
  flex: 1;
  min-width: 0;
  color: #f0f0f0;
}

.info_text h1 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #cf1414;
}

.info_text h2 {
  font-size: 18px;
  margin: 20px 0 10px;
  color: #cf1414;
}

.info_text p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* 배너 영역 */
.banner {
  flex: 1;
  min-width: 0;
}

.banner_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px 15px;
}

.banner_tr {
  height: 150px;
}

.banner_content {
  background-color: #f0f0f0; /* 테스트용 배경 */
  height: 150px;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  color: #333;
  padding: 0;
  box-sizing: border-box;
}

.banner_content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  body {
    padding: 0;
    margin: 0;
    width: 100%;
  }
  .main_content {
    flex-direction: column;
    padding: 20px 0;
  }
  .main_content.only-info {
    max-width: 92%;

  }
  .info_img{
	  gap: 10px;
  }
  .img_lb{
	  max-width: 100% !important;
  }
  
  .info_img1{
	  width: calc(50% - 5px);
  }
  
  .container{
	  width: 88%;
  }

  .info_text {
    width: 100%;
    padding: 16px;
    font-size: 14px;
    background-color: #111;  /* 배경 어두운 경우 대비 */
    color: #fff;
  }

  .info_text,
  .banner {
    width: 100%;
  }

  .main_content.only-info .info_text {
    max-width: 100%;
  }

  .info_text h1 {
    font-size: 20px;
  }

  .info_text h2 {
    font-size: 16px;
  }

  .info_text p {
    font-size: 14px;
  }

  .banner_tr {
    height: 120px;
  }

  .banner_content {
    height: 120px;
  }

  .banner_content img {
    border-radius: 4px;
  }
  .slide_container .image-item {
    width: 120px;
    height: auto;
    margin: 0 3px;
  }

  .slide_container {
    padding: 20px 10px;
	box-sizing: border-box;
  }
  header {
    width: 100%;
	box-sizing: border-box;
  }
  header nav {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 94%;
    gap: 6px;
    padding: 10px 8px;
    font-size: 14px;
  }

  header h1 {
    font-size: 20px;
    text-align: center;
  }

  /* 버튼 영역 중앙 정렬 */
  .shortcut-buttons {
    text-align: center;
    margin: 10px 0;
  }

  .shortcut-buttons button {
    margin: 4px;
    font-size: 14px;
  }

  /* 푸터 정리 */
  footer {
    text-align: center;
    padding: 16px;
    font-size: 13px;
    background: #222;
    color: #aaa;
    width: 100vw;
	box-sizing: border-box;
  }
}
.info_text h1,
.info_text h2 {
  margin-top: 16px;
  margin-bottom: 8px;
}
.info_text {
  border: #cf1414 2px solid;
  padding: 10px;
  border-radius: 15px;
  box-sizing: border-box;
}
/* 본문 문장 간격 줄이기 */
.info_text p {
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.info_text h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.info_text h2 {
  font-size: 18px;
  font-weight: bold;
  margin: 16px 0 8px;
}

.info_text p {
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.6;
}
/* detail 페이지용 콘텐츠 스타일 */
/* detail 페이지용 콘텐츠 스타일 */
.detail-wrapper {
  max-width: 800px;
  height: auto;
  width: 70vw;
  margin: 40px auto;
  padding: 20px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  animation: fadeIn 0.5s ease-in-out;
}

.detail-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #cf1414;
  border-bottom: 2px solid #cf1414;
  padding-bottom: 10px;
}

.detail-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-content {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 30px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.8;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  color: #ddd;
  animation: fadeIn 0.6s ease-in-out 0.3s;
  animation-fill-mode: both;
  width: auto;
  height: auto;
}

/* 간단한 fadeIn 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pagination {
  text-align: center;
  margin: 30px 0;
}

.pagination>a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination>a:hover {
  background: #000000;
  border-color: #ff0000;
  color: #fff;
}

.pagination>a:active {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
  font-weight: bold;
}
