/*!
Theme Name: multimedia
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
*/

.current-menu-item a {
  color: #333;
}
.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pagination a.page-numbers {
  text-decoration: none;
  color: #6e8aa58c;
}
.pagination .page-numbers.current {
  font-weight: 600;
}
ul.ya-share2__list {
  padding: 0 !important;
  margin: 10px 0;
}
.ya-share2__list.ya-share2__list_direction_horizontal {
  margin: 0 !important;
}

/**/
.cart-header {
  margin: 0 0 20px;
}
.clear-cart-btn {
  color: #f00;
}
.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
  width: max-content;
  margin-left: auto;
  align-items: flex-end;
}
.continue-shopping {
  font-size: 14px;
  display: block;
  font-weight: 400;
  background: transparent;
  margin: 0 auto;
}

.cart-card {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.cart-card-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cart-card-info {
    flex-grow: 1;
}

.cart-items {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.cart-table th:first-child,
.cart-table td:first-child {
    text-align: left;
}

.cart-table th:not(:first-child),
.cart-table td:not(:first-child) {
    text-align: center;
}

.cart-table th {
    background-color: #f5f5f5;
}

.cart-table-col-remove {
    width: 32px;
    text-align: center;
    vertical-align: middle;
}

.cart-remove-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: #f00;
}

.cart-remove-item .icon {
    width: 10px;
    height: 10px;
}

@media screen and (max-width: 767px) {
    .cart-table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table tr,
    .cart-table th,
    .cart-table td {
        display: block;
    }

    .cart-table th:not(:first-child),
    .cart-table td:not(:first-child) {
        text-align: left;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        border: 1px solid #ddd;
        border-radius: 6px;
        margin-bottom: 12px;
        padding: 10px;
        background: #fafafa;
    }

    .cart-table tbody td {
        border: none;
        padding: 6px 0;
        text-align: left;
    }

    .cart-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        display: inline-block;
        min-width: 110px;
        color: #333;
    }

    .cart-table tbody td.cart-table-col-remove {
        text-align: left;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }

    .cart-table tbody td.cart-table-col-remove::before {
        display: block;
        margin-bottom: 6px;
    }

    .cart-table tfoot {
        display: block;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 12px;
        margin-top: 12px;
        background: #f5f5f5;
    }

    .cart-table tfoot tr {
        display: block;
    }

    .cart-table tfoot td {
        border: none;
        padding: 0;
        text-align: left;
    }

    .cart-table tfoot td.cart-table-col-remove {
        display: none;
    }

    .cart-table tfoot td[colspan] {
        display: inline;
    }

    .cart-table tfoot td:last-of-type:not(.cart-table-col-remove) {
        display: inline;
        margin-left: 4px;
    }
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.cart-total {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.checkout-btn {
    background-color: #6E8AA5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}


/*lk*/
.arhiv_products_title,
.arhiv_subscription_title {
  margin: 0 0 20px;
  background: #6E8AA5;
  padding: 10px 20px;
  color: #fff;
}
#all_arhiv_products .item {
  display: grid;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid #6e8aa529;
}
#all_arhiv_products .item .promt {
  display: flex;
  align-items: self-start;
  justify-content: space-between;
  gap: 20px;
}

#all_arhiv_products .item .promt ul {
  text-align: right;
  list-style: none;
}

.user-orders .promt ul li .download {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5em;
  font-size: 0.9em;
  gap: 5px;
}

.user-orders .promt ul li {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgba(110, 138, 165, 0.25);
}

.user-orders .promt ul li a.order-item-title {
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .user-orders .promt ul li .download {
    display: flex;
    margin-left: 0;
    margin-top: 0.35em;
  }
}

#all_arhiv_subscription .item {
  display: grid;
  gap: 10px;
}
#all_arhiv_subscription .item .promt {
  display: flex;
  align-items: self-start;
  justify-content: space-between;
  gap: 20px;
}
.btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 40px;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  padding: 0 40px;
  border-radius: 6px;
  background: #6E8AA5;
  text-decoration: none;
  color: #fff;
}
.arhiv_subscription_row {
  margin: 0 0 20px;
}

/*cart-notification*/
.cart-notification {
  position: fixed;
  bottom: 8%;
  right: 2%;
  background: green;
  color: #fff;
  padding: 10px 20px;
}
.subscription-message.success {
  margin: 0 0 20px;
  color: green;
}
.active_text {
  background: green;
  color: #fff;
  padding: 10px 20px; 
}
.error_text {
  color: red;
  padding: 10px 0px;
  font-size: 14px; 
}
.literary_detailed_props .download {
  margin: 20px 0 0;
}
.link_text {
  font-size: 14px;
}

/**/
.custom-audio-player {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background: #6E8AA5;
  border-radius: 15px;
  padding: 20px;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-width: 500px;
  margin: 20px 0;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.play-btn {
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.play-btn:hover {
  transform: scale(1.1);
  background: #f0f0f0;
}

.play-btn .play-icon { display: block; }
.play-btn .pause-icon { display: none; }
.play-btn.playing .play-icon { display: none; }
.play-btn.playing .pause-icon { display: block; }

.progress-container {
  flex: 1;
  background: rgba(255,255,255,0.3);
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  flex-shrink: 1;
  min-width: 0;
}

.progress-bar {
  background: white;
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}

.time-display {
  font-size: 12px;
  opacity: 0.8;
  min-width: 100px;
  text-align: center;
  flex-shrink: 0;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.volume-slider {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
  margin: 0;
}

.track-info {
  margin-bottom: 15px;
}

.track-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 16px;
}


/**/
video {
  max-width: 860px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  background: #000;
  aspect-ratio: 16/9;
  margin: 10px 0 20px;
}
/* .video-player {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.video-player.full-access {
    background: #f8fff8;
    border-color: #4CAF50;
}

.video-player.demo-only {
    background: #fff8f8;
    border-color: #ff9800;
}

.video-player.error {
    background: #fff8f8;
    border-color: #f44336;
}

.video-actions {
    margin-top: 15px;
    text-align: center;
}

.download-button {
    display: inline-block;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 5px;
}

.download-button:hover {
    background: #45a049;
}

.access-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.demo-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 4px;
    color: #856404;
    margin-top: 10px;
} */


/* Стили для ЮKassa */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.subscription-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 14px;
}

.subscription-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.subscription-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.subscription-message.info {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    color: #0d47a1;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .subscription_btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    .yookassa-status {
        font-size: 12px;
        padding: 8px;
    }
}
.literary_row {
  grid-template-columns: repeat(4, 1fr);
}
.literary_row .item .img {
  aspect-ratio: 3 / 4;
  height: auto;
}
.add_car {
  z-index: 2;
}