body {
	background: #eaa8b1;
    max-width: 1400px;
    margin: auto;
    font-family: Roboto, Arial, sans-serif;
    color: #fffddd;
}


/* Для вебкит-браузеров (Chrome, Safari, Edge) */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #b56402; }
::-webkit-scrollbar-thumb { background: #000; }
::-webkit-scrollbar-thumb:hover { background: #343434; }

/* Для браузеров Firefox */
scrollbar { width: 10px; }
scrollbar-track { background: #f1f1f1; }
scrollbar-thumb { background: #888; }
scrollbar-thumb:hover { background: #555; }

a {text-decoration: none;}

.logo img {
    width: 150px;
}

.container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
}

.content {
    height: 150px;
    grid-column: span 3;
    position: relative;
    top: 35px;
}

.head {
    background: #90696d;
    height: 35px;
    margin: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.head .container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    color: #ddcdb0;
    max-width: 1400px;
    margin: auto;
    font-size: 24px;
}

.head .ite {
    height: auto;
    width: auto;
    
}

.head .span span {
    font-size: 27px;
    margin: 0 5px;
} 

.noti {
    position: absolute;
    margin-top: -2px;
    margin-left: -17px;
    width: 15px;
    height: 15px;
    background: #f9e8f2;
    color: #fffddd;
    border: 2px solid #fffddd;
    border-radius: 100%;
    font-size: 12.3px;
    text-align: center;
}

.menu {
    grid-row: span 60; /* Занимает 2 строки */
    
    position: relative;
    top: 35px;
}

.menu1 {
    grid-row: span 60;
    position: relative;
    top: 35px;
}

.cover {
    grid-column: span 5;
    height: 130px;
    text-align: center;
    position: relative;
    top: 25px;
}

.cover img {
    height: 100%;
}

.block_head {
    background: #bd6b08;
    height: 29px;
    box-shadow: 0 0 2px #aaacf7;
    grid-column: span 5;
    position: relative;
    top: 22px;
}

/*menu block*/
.menu_cover {
		width: 100%;
		height: 100%;
}

.menu_coverw {
		width: 100%;
		height: 150px;
}

.menu_cover a {
		color: #fffddd;
}


.w:after {
    content: ''; 
	position: absolute; 
	top: 0;
    width: 100%;
	height: 100%; 
	background: rgba(0,0,0,.3);
	z-index: 2;
}

.ww:after {
    content: ''; 
	position: absolute; 
	top: 0;
    width: 100%;
	height: 150px; 
	background: rgba(0,0,0,.3);
	z-index: 2;
}

.bl {
    position: absolute;
    margin-top: 20px;
}

.menu_avatarw {
		z-index: 3;
	 position: absolute;
}


.menu_avatarw img {
		width: 70px;
		height: 70px;
		object-fit: cover;
	 border-radius: 100px;
}

.menu_text {
	margin-left: 10px;
	font-size: 17px;
    color: #fffddd;
    text-shadow: 0 0 10px #000000;
}
.menu hr {
    margin: 15px 0px 15px 0px;
}

.menu_block1 {
  position: relative;
  top: -425px; /* стартовое положение */
  transition: top 0.4s ease;
  font-family: sans-serif;
}

.menu_block {
    background: #bf737c;
    padding: 0bf737cpx;
    border-radius: 20px;
    margin-top: 5px;
}


.menu_block a {
		padding: 13px 13px 18px 13px;
		color: #fffddd;
		display: block;
}

.menu_block span {
		position: relative;
		top: 5px;
		margin: 0 10px;
}

.menu_block select {
    background: #bf737c;
    border: none;
    padding: 10px;
    width: 100%;
    color: #fff;
    outline: none;
    padding: 10px;
    border-radius: 20px;
    text-align: center;
}

.menu_block option {
    background: #333;
    color: #fff;
}

.menu_foot {
		padding: 10px;
		display: block;
		margin-top: 10px;
		color: #b7626c;
}



.fon {
    grid-column: span 3;
    border-radius: 10px;
    margin: auto 100px; 
}

.fon img {
    width: 1o0%;
}


.block_info {
    background: #f5dbdf;
    width: 100%;
    height: 252px;
    text-align: center;
    position: relative;
    top: 30px;
    grid-column: span 4;
    display: inline-flex;
    overflow-x: auto;
    white-space: nowrap; 
    scrollbar-width: 
    -ms-overflow-style: none;
    border: 5px solid #f5dbdf;
    border-radius: 5px;
}

.block_info::-webkit-scrollbar {
  display: none;
}
.block_info .anime {
    padding: 2.5px;
    width: 200px;
    margin-right: 5px;
}

.block_info .anime img {
    width: 200px;
    height: 235px;
    object-fit: cover; 
    border-radius: 10px;
}

.block_catalog {
    background: #e7cace;
    grid-column: span 4;    
    border-radius: 5px;
    padding: 10px;
    color: #fff;
    position: relative;
    top: 30px;
    grid-column: span 4;
}

.block_catalog::-webkit-scrollbar {
  display: none;
}

.block_catalog .nva {
    background: #eaa8b1;
    padding: 10px;
    float: right;
    border-radius: 10px;
    margin-right: 5px;
    font-size: 20px;
    color: #fff;
}
.block_catalog a {
    color: #fff;
}
.anime_nav {
    background: #e2939d;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 10px;
}

.anime_nav .cover {
    min-height: 238px;
    min-width: 177px;
    grid-column: span 1;
    position: relative;
    top: 0px;
}

.anime_nav .cover img {
    min-height: 238px;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.anime_nav .content {
    min-height: 238px;
    grid-column: span 3;
    position: relative;
    top: 0px;
    color: #fffddd;
}

.anime_nav .content .description {
    display: -webkit-box;
max-height: calc(1.2em * 8); /* 1.2em — высота строки, умножаем на кол-во строк */

-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}

.anime_item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.anime_item.show {
    opacity: 1;
    transform: scale(1);
}

.anine_cover {
    width: 97%;
}

.anine_cover img {
    border-radius: 10px;
    width: 100%;
}

.anime_content {
    background: #e2939d;
    color: #fffddd;
    padding: 5px;
    margin-top: 10px;
    border-radius: 10px;
    font-size: 19px;
}
.menu_block2 {
    display: none;
    background-color: #333;
    color: white;
    padding: 10px;
    list-style: none;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: height 0.3s ease-in-out;
    overflow: hidden;
    height: 0;
    width: 100%;
    padding: 0 7px;
    border-radius: 15px;
}


.menu_block2 a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px;
    border-bottom: 1px solid #555;
}

.menu_block2 a:hover {
    background-color: #444;
}

.content_block2 {
    transition: margin-top 0.3s ease-in-out;
    margin-top: 0;
    height: auto;
}

.c_post {
    background: #00ba12;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: -32px;
    width: 97%;
    text-align: center;
}

.c_mini {
    background: #00ba12;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: 209px;
    min-width: 169px;
    text-align: center;
}

.c_top {
    background: #00ba12;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: 207px;
    margin-left: -200px;
    min-width: 200px;
    text-align: center;
}

.p_post {
    background: #3b3db0;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: -32px;
    width: 97%;
    text-align: center;
}

.p_mini {
    background: #3b3db0;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: 209px;
    min-width: 169px;
    text-align: center;
}

.p_top {
    background: #3b3db0;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: 207px;
    margin-left: -200px;
    min-width: 200px;
    text-align: center;
}

.o_post {
    background: #dba212;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: -32px;
    width: 97%;
    text-align: center;
}

.o_mini {
    background: #dba212;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: 209px;
    min-width: 169px;
    text-align: center;
}

.o_top {
    background: #dba212;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: 207px;
    margin-left: -200px;
    min-width: 200px;
    text-align: center;
}

.b_post {
    background: #920006;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: -32px;
    width: 97%;
    text-align: center;
}

.b_mini {
    background: #920006;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: 209px;
    min-width: 169px;
    text-align: center;
}

.b_top {
    background: #920006;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: 207px;
    margin-left: -200px;
    min-width: 200px;
    text-align: center;
}

.v_post {
    background: #8300cc;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: -32px;
    width: 97%;
    text-align: center;
}

.v_mini {
    background: #8300cc;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: 209px;
    min-width: 169px;
    text-align: center;
}

.v_top {
    background: #8300cc;
    color: #fff;
    padding: 5px 0px 5px 0px;
    opacity: 0.8;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: absolute;
    margin-top: 207px;
    margin-left: -200px;
    min-width: 200px;
    text-align: center;
}

.r_post {
    background: #00ba12;
    color: #fff;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 1px 13px 1px 13px;
    font-size: 19px;
    position: relative;
    top: -385px;
    float: right;
    opacity: 0.8;
}

.r_mini {
    background: #00ba12;
    color: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1px 13px 1px 13px;
    font-size: 19px;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.8;
}

.r_top {
    background: #00ba12;
    color: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1px 13px 1px 13px;
    font-size: 19px;
    position: absolute;
    top: 3px;
    margin-left: -36px;
    opacity: 0.8;
}

.rating-area {
    overflow: hidden;
    width: 220px;
    margin: 0;
    padding: 5px;
}
.rating-area:not(:checked) > input {
    display: none;
}
.rating-area:not(:checked) > label {
    float:right;
    width: 42px;
    padding: 0;
    cursor: pointer;
    font-size: 32px;
    line-height: 32px;
    color: #46355b;
    text-shadow: 1px 1px #11001e;
    
}

.rating-area:not(:checked) > label:before {
    content: '★';
}
.rating-area > input:checked ~ label {
    color: #fff;
    text-shadow: 1px 1px #2d0050;
}

.rating-area:not(:checked) > label:hover,
.rating-area:not(:checked) > label:hover ~ label {
    color: #fff;
}
.rating-area > input:checked + label:hover,
.rating-area > input:checked + label:hover ~ label,
.rating-area > input:checked ~ label:hover,
.rating-area > input:checked ~ label:hover ~ label,
.rating-area input:checked ~ label,
.rating-area > label:hover ~ input:checked ~ label {
    color: #fff;
    text-shadow: 1px 1px #2d0050;
}
.rate-area > label:active {
    position: relative;
}


.comm {
    color: #fff;
    padding: 15px 10px 15px 10px;
    margin-left: 5px;
    margin-right: 5px;
}

.comm_nav {
    display: flex;
    color: #fff;
    padding: 5px;
    margin: 5px;
    height: auto;
}

.comm_nav .avatar {
    flex-shrink: 0;
    margin-right: 10px;
}

.comm_nav img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 100%;
}

.comm_nav .message {
    flex-grow: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.comm_nav a {
    color: #fff;
    padding: 3px;
}

.comm_nav span {
    color: #fff;
    float: right;
}

.comm_nav span a {
    color: #fff;
}

.comment_form {
    display: flex;
    gap: 10px;
    margin: 30px 5px 5px 5px;
    width: 100%;
}

.comment_form textarea {
  flex-grow: 1;
  padding: 10px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  resize: none; /* убираем ручное растягивание */
  min-height: 40px;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.4;
}

.comment_form textarea::placeholder {
  color: #ccc;
}

.comment_form button {
  padding: 10px 15px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.comment_form button:hover {
  background: #fff;
  color: #000;
}

h2 {
    margin-top: 20px;
  }
  .scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scroll-behavior: smooth;
    left: 0;
  }
  .item {
    flex: 0 0 auto;
    width: 140px;
    text-align: center;
  }
  .item img {
    width: 100%;
    border-radius: 8px;
    display: block;
  }
  .scroll-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 5px;
  }

  .scroll-container {
  overflow-x: auto;
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none; /* IE и Edge */
}
.scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari и Opera */
}

  button.scroll-btn {
    padding: 6px 12px;
    font-size: 16px;
    cursor: pointer;
  }
  @media (max-width: 480px) {
    .item {
      width: 120px;
    }
  }


  
.nav_post {
  width: 100%;
  height: 210px;
  display: inline-block;
  object-fit: cover;
  border-radius: 10px; 
  margin-top: 5px;
  margin-left: 5px;
  margin-right: 5px;
  position: relative;
  left: -5px;
  right: 0;
}

.tem:after {
  content: ''; 
  border-radius: 10px; 
  position: absolute; 
  left: 0;
  width: 100%;
  height: 210px; 
  background: rgba(0,0,0,.5); 
  z-index: 2;
}

.nav_text {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  color: #e7e7e7; 
  display: flex;
  flex-direction: column;
  height: 190px;
  width: calc(100% - 20px);
}

.nav_text a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow-y: hidden;
  color: #e7e7e7; 
}

.nav_text i {
  color: #c8c8c8;
  font-size: 13px;
}

.nav_text span {
  font-size: 25px;
}

.mini_ava {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 100%;
  box-shadow: 0 0 5px;
}

table {
  width: 100%;
}

.stats {
  position: absolute;
  bottom: 5px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
}

.stats span {
  font-size: 20px;
  color: #e7e7e7;
}

.stats a {
  font-size: 15px;
  color: #e7e7e7;
}

.right{
  float: right; 
} 

/* Тёмный фон */
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  /* Модальное окно */
  #modalBox {
    background: #222;
    color: #fff;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
  }

  #modalBox input, #modalBox textarea, #modalBox button {
    width: 92%;
    margin: 10px;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
  }

  #modalBox input, #modalBox textarea {
    background: #333;
    color: #fff;
  }

  #modalBox button {
    background: #4caf50;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 96%;
  }

  #modalBox button:hover {
    background: #45a045;
  }

  @keyframes fadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }