/*
Theme Name: sumerki-dark-theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Краткое описание темы
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mytheme
*/

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


.movie-meta-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.movie-meta-column {
    flex: 1 1 45%;
}

.movie-meta-column ul li span {
    font-weight: 600;
    color: #444;
}

.movie-meta-column .rating {
    line-height: 30px;
    border-radius: 3px;
    text-align: center;
    width: 46%;
    margin-top: 7px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-right: 2%;
}

.movie-meta-column .rating.kp { 
box-shadow: inset 0 0 0 2px #f60;
}

.movie-meta-column .rating.imdb { 
box-shadow: inset 0 0 0 2px #fc0;
}

.rating-block {
    display: flex;
    gap: 10px;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 5px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .movie-meta-block {
        flex-direction: column;
    }

    .movie-meta-column {
        flex: 1 1 100%;
    }

    .movie-meta-block,
    .movie-meta-column,
    .rating-block {
        text-align: left;
        align-items: flex-start;
    }
}




#movie-rating {
  height: 45px;
    position: relative;
    z-index: auto; /* или 1, или 0 */
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1px;
}

.rating-btn {
    display: inline-flex;
    align-items: center;
    border: none;
    background: transparent;
    cursor: pointer;
    gap: 5px;
}

.rating-btn .icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.rating-btn.like .icon-circle {
    background-color: #43a047; /* зеленый */
}

.rating-btn.dislike .icon-circle {
    background-color: #e53935; /* красный */
}

.rating-btn.like:hover .icon-circle {
    background-color: #388e3c; /* темнее зеленый */
}

.rating-btn.dislike:hover .icon-circle {
    background-color: #c62828; /* темнее красный */
}

.rating-btn:hover {
    background: transparent !important;
    transform: none !important;
}

.rating-btn svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
    fill: #ffffff;
    stroke: #ffffff;
}

.rating-btn .count {
    font-size: 13px;
    color: #121212;
    font-weight: bold;
}


#rating-circle {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #eee; /* Внутренний серый фон */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 7px rgba(0,0,0,0.3);
    overflow: hidden;
}

.progress-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    z-index: 1;
}


.progress-bg {
    fill: none;
    stroke: #444; /* Темно-серый контур */
    stroke-width: 8;
}

.progress-ring-circle {
    fill: none;
    stroke: #fcc030;
    stroke-width: 8;
    stroke-dasharray: 251.2; /* 2 * PI * 45 */
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 0.35s;
}

.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    color: #000;
    z-index: 2;
}

/* Белый второй контур */
#rating-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 3;
}














.movie-container {
    max-width: 1200px;
    margin: 0 auto;
    color: #888;
	background-color: #fff;
	padding: 20px;
}

.movie-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.movie-poster img {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
	height: auto;
    box-shadow: 0 0 0 1px #ccc, 2px 3px 3px 0 rgba(0, 0, 0, .1);	
}

.movie-info {
    flex: 1;
}

.movie-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.movie-description-short {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
    transition: max-height 0.5s ease;
}

.fade-out::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}


#expand-description {
    background: #fff;
    color: #444;
	font-weight: 600;
    border: none;
    padding: 10px;
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, .15);
    width: 100%;
    cursor: pointer;
    display: block;
    margin-bottom: 10px;
}

.subheader {
	border-top: 1px solid #e3e3e3;
	text-align: center;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 16px;
	color: #444;
	background: #fff; 
	margin-top: 20px;
}


.movie-player{
	background: #1e1e1e;
	padding-top:10px;
	position: relative;
	 margin-left: -20px;   /* снимаем паддинг контейнера */
     margin-right: -20px;
}

.movie-player iframe {
    width: 100%;
    height: 450px;
    border: none;
    margin: 20px 0;
}

.player-tabs {
    display: flex;
    gap: 15px;
	padding-left: 10px;
}

.tab-button {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
	height: 40px;
	background: #4f4f4f;
	font-size: 14px;
	font-weight: 700;
	color: #f2f2f2;
}

.tab-button.active {
    background: #79c142;
}

.movie-comments {
    margin-top: 30px;
}

.movie-additional-description {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .movie-header {
        flex-direction: column;
        align-items: center;
    }


    .movie-info {
        text-align: center;
    }
}



body {
    background-color: #121212;
    color: #f0f0f0;
}

.header-top-bg {
    height: 250px;
    background-color: #121212;
}

@media (max-width: 768px) {
  .header-top-bg {
    display: none;
  }
}

.site-header {
    background: #fff;
	box-shadow: 0 1px 5px 0 rgba(0, 0, 0, .15);
	border-radius: 4px 4px 0 0;
    height: 70px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
	position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .movie-page-container {
        flex-direction: column;
        align-items: center;
    }
}


.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
}

.main-nav a {
    color: #fff;
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form input {
    padding: 5px;
    border: 1px solid #555;
    background: #fff;
    color: #000;
    border-radius: 4px;
    margin-right: 5px;
}

.search-form button {
    background: #79c142;
    color: #222;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}




.theme-toggle-btn {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    margin-left: 15px;
    transition: background 0.3s, color 0.3s;
}

.theme-toggle-btn:hover {
    background: #555;
}



/* Emoji Reactions and Social Share Block */
.movie-reactions {
  width: 100%;
  max-width: 100%;
  padding: 20px 0;
}

.emoji-social-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* всегда 7 колонок */
  gap: 8px; /* базовый отступ для десктопа */
}

.emoji-social-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.emoji-wrapper {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.emoji-wrapper img {
  width: 40px;
  height: 40px;
  display: block;
  transition: transform 0.2s ease;
}

.emoji-wrapper:hover img {
  transform: scale(1.2);
}

.emoji-count {
  margin-top: 5px;
  font-size: 14px;
  color: #333;
}

.social-share {
  margin-top: 8px;
}

.share-btn {
  display: block;
  width: 100%;
  padding: 5px;
  border-radius: 6px;
  text-align: center;
  transition: opacity 0.3s ease;
  opacity: 1;
  color: white;
  text-decoration: none;
}
.share-btn:hover {
  opacity: 0.8;
}
.share-btn i {
  font-size: 24px;
  display: inline-block;
  pointer-events: none;
}
.share-btn::after {
  display: none !important;
}

/* Цвета соцсетей */
.share-btn.vk        { background: #4c75a3; }
.share-btn.ok        { background: #ee8208; }
.share-btn.whatsapp  { background: #25D366; }
.share-btn.telegram  { background: #0088cc; }
.share-btn.facebook  { background: #3b5998; }
.share-btn.viber     { background: #665cac; }
.share-btn.twitter   { background: #000000; }









/* ========== DARK MODE ========== */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .movie-meta-column ul li span {
    color: #ccc;
}

.dark-mode .rating-btn .count {
    color: #fff;
}

.dark-mode #rating-circle {
    background: #333;
}

.dark-mode .progress-bg {
    stroke: #ccc;
}

.dark-mode .circle-text {
    color: #fff;
}

.dark-mode #rating-circle::after {
    border-color: #121212;
}


.dark-mode .subheader {
    border-top: 1px solid #555;
    color: #eee;
    background: #121212;
}

.dark-mode .movie-player {
    background: #333;
}

.dark-mode .tab-button {
    background: #ccc;
    color: #121212;
}

.dark-mode .tab-button.active {
    background: #f90;
    color: #fff;
}

.dark-mode .site-header {
    background: #121212;
    box-shadow: 0 1px 5px 0 rgba(255, 255, 255, 0.15);
}

.dark-mode .main-nav a {
    color: #ccc;
}

.dark-mode .search-form input {
    background: #121212;
    color: #fff;
    border-color: #aaa;
}

.dark-mode .search-form button {
    background: #f90;
    color: #fff;
}

.dark-mode .theme-toggle-btn {
    background: #f90;
    color: #fff;
}

.dark-mode .emoji-count {
    color: #eee;
}






body.dark-mode .movie-container {
    background-color: #222;
    color: #ccc;
}


body.dark-mode .movie-poster img {
    box-shadow: 0 0 0 1px #444, 2px 3px 3px 0 rgba(255, 255, 255, 0.1);
}


body.dark-mode .fade-out::after {
    background: linear-gradient(to bottom, rgba(18,18,18,0) 0%, rgba(18,18,18,1) 100%);
}

body.dark-mode #expand-description {
    background: #222;
    color: #eee;
}


body.dark-mode .subheader {
    border-top: 1px solid #333;
    color: #ccc;
    background: #222;
}


body.dark-mode .tab-button.active {
    background: #f90;
    color: #fff;
}


body.dark-mode .site-header {
    background: #222;
    box-shadow: 0 1px 5px 0 rgba(255, 255, 255, 0.15);
}


body.dark-mode .main-nav a {
    color: #ccc;
}


body.dark-mode .search-form input {
    background: #222;
    color: #fff;
    border-color: #aaa;
}


body.dark-mode .search-form button {
    background: #f90;
    color: #fff;
}

body.dark-mode .theme-toggle-btn {
    background: #f90;
    color: #fff;
}


body.dark-mode .emoji-count {
    color: #eee;
}



/* Все табы и кнопка «СВЕТ» — ВЕРХНИМ РЕГИСТРОМ */
:root {
  --tab-bg: #444;
  --tab-text: #fff;
  --tab-border: rgba(255, 255, 255, .1);
  --accent: #79c142;
}

.player-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 10px;
  padding-right: 10px;
}

.tab-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-tabs .tab-button,
.player-tabs .theme-toggle-btn2 {
  text-transform: uppercase;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tab-bg);
  color: var(--tab-text);
  border: 1px solid var(--tab-border);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.player-tabs .tab-ico {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.player-tabs .tab-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.player-tabs .tab-button:hover,
.player-tabs .theme-toggle-btn2:hover {
  color: var(--accent);
}

.player-tabs .tab-button.active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.player-tabs .theme-toggle-btn2 {
  margin-left: auto;
}

.player-tabs .tab-button:focus-visible,
.player-tabs .theme-toggle-btn2:focus-visible {
  outline: 2px solid rgba(121, 193, 66, .45);
  outline-offset: 2px;
}

.movie-player iframe {
  width: 100%;
  height: 400px;
  border: none;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.playlist {
  width: 33%;
  margin-left: 20px;
  transition: width 0.4s ease, opacity 0.4s ease;
  opacity: 1;
}

.playlist ol {
  list-style: none;
  padding: 0;
}

.playlist li {
  margin-bottom: 2px;
}

.playlist button {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  padding: 8px 12px;
  transition: background 0.3s;
}

.playlist button:hover{
	background-color: #4d4d4d;
}

.playlist .index-box {
  width: 24px;
  height: 24px;
  background: #555;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
  border-radius: 3px;
}

.playlist li.active button {
  background: #79c142;
}

body.dark-mode .playlist li.active button {
  background: #f90;
}

.playlist li.active .index-box {
  background: white;
  color: #79c142;
}



.player-toggle-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #79c142;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: background 0.3s, transform 0.3s;
}
.expand-toggle {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999; /* 👈 делает поверх всего */
  transition: transform 0.3s ease, background 0.3s ease;
}


.player {
  transition: opacity 0.4s ease, visibility 0.4s ease, width 0.4s ease;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 67%;
}

.player.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.movie-player.expanded .toggle-expand-btn {
  background-color: transparent;
  pointer-events: auto;
}

.movie-player.expanded .playlist {
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.player-wrapper {
  display: flex;
  transition: all 0.4s ease;
  width: 100%;
}

.movie-player.expanded .player-toggle-btn {
  pointer-events: auto;
   bottom: 70px; /* или другое значение по вкусу */
}

.movie-player.expanded .player {
  width: 100%;
}

.movie-player.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  padding: 20px;
  z-index: 9998;
  overflow: auto;
}
.movie-player.fullscreen iframe {
  height: calc(100vh - 100px);
}


.movie-player .player-wrapper {
  transition: all 0.4s ease;
  position: relative;
}

.movie-player .player iframe {
  transition: height 0.4s ease;
  height: 400px;
}



.movie-player.expanded .player iframe {
  height: 600px; /* можно изменить по желанию */
}

.movie-player.expanded .player {
  width: 100%;
}


@media (max-width: 768px) {
  .player-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .player {
    width: 100%;
  }

  .player:not(.active) {
    position: absolute !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
  }

  .playlist {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    opacity: 1;
    pointer-events: auto;
  }

  .movie-player.expanded .playlist {
    display: none !important;
  }

  .player-toggle-btn {
    bottom: 10px;
    right: 10px;
  }
  .player-toggle-btn {
    display: none !important;
  }
}



.player-single {
  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.player-single.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  margin-top: 10px;
}

.movie-player-single .player-single iframe {
  transition: height 0.4s ease;
  height: 400px;
}

.movie-player-single {
 background: #1e1e1e;
    padding-top: 10px;
}
.movie-player-single.expanded .player-single iframe {
  height: 600px;
}






.site-footer {
  background-color: #1e1e1e; /* тёмно-серый */
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

body.dark-mode .site-footer {background-color: #222}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 500px;
}

.footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: 20px;
}

.footer-text {
  max-width: 500px;
  line-height: 1.6;
}

.site-footer .copyright {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* Мобильная версия — по центру */
@media (max-width: 768px) {
  .footer-container {
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .footer-text {
    text-align: center;
  }
}



