body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #f7f7f7;
      color: #222;
    }
    header {
      background: #004242;
      color: #fff;
      padding: 20px 20px;
      text-align: center;
    }
    header h1 {
      margin: 0 0 10px;
      font-size: 36px;
      color: #FFFFFF;
    }
    header p {
      font-size: 18px;
      opacity: 0.9;
    }
    .container {
      max-width: 1000px;
      margin: 0 auto;
      padding: 40px 20px;
      background: #fff;
    }
    .section {
      margin-bottom: 50px;
    }
    .section h2 {
      margin-bottom: 15px;
      font-size: 26px;
      color: #2c3e50;
      border-left: 4px solid #0F92AA;
      padding-left: 12px;
    }
    .section h3 {
      font-size: 20px;
      color: #2c3e50;
      margin-top: 28px;
      margin-bottom: 10px;
    }
    .section p {
      font-size: 16px;
      line-height: 1.7;
      color: #333;
    }
    .section ul {
      font-size: 16px;
      line-height: 1.8;
      color: #333;
      padding-left: 24px;
    }
    .section ul li {
      margin-bottom: 6px;
    }

    /* Пронумерованные шаги */
    .steps {
      counter-reset: step-counter;
      list-style: none;
      padding-left: 0;
    }
    .steps li {
      counter-increment: step-counter;
      position: relative;
      padding: 14px 16px 14px 56px;
      margin-bottom: 12px;
      background: #f4f9fb;
      border-radius: 8px;
      border-left: 3px solid #0F92AA;
      font-size: 16px;
      line-height: 1.6;
      color: #333;
    }
    .steps li::before {
      content: counter(step-counter);
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      background: #0F92AA;
      color: #fff;
      font-weight: bold;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }

    /* Блок-выделение */
    .info-box {
      background: #e8f7fa;
      border: 1px solid #0F92AA;
      border-radius: 8px;
      padding: 16px 20px;
      margin: 20px 0;
      font-size: 15px;
      line-height: 1.6;
      color: #1a4a52;
    }
    .warn-box {
      background: #fff8e1;
      border: 1px solid #f0c040;
      border-radius: 8px;
      padding: 16px 20px;
      margin: 20px 0;
      font-size: 15px;
      line-height: 1.6;
      color: #5a4000;
    }

    /* Галерея скриншотов */
    .screenshots {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin-top: 24px;
      flex-wrap: wrap;
    }
    .screenshots img {
      width: calc(33.333% - 12px);
      max-width: 300px;
      min-width: 180px;
      border-radius: 8px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.15);
      cursor: zoom-in;
      transition: transform 0.2s, box-shadow 0.2s;
      object-fit: cover;
    }
    .screenshots img:hover {
      transform: scale(1.03);
      box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    }
    .screenshots_small {
      display: flex;
      justify-content: center;
      gap: 16px;
      margin-top: 24px;
      flex-wrap: wrap;
    }
    .screenshots_small img {
      width: calc(33.333% - 12px);
      max-width: 150px;
      min-width: 120px;
      border-radius: 8px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.15);
      cursor: zoom-in;
      transition: transform 0.2s, box-shadow 0.2s;
      object-fit: cover;
    }
    .screenshots_small img:hover {
      transform: scale(1.03);
      box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    }
	
	
	/* древовидная структура папок сериалов */
	.series-tree {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: #f8f9fa;
      padding: 20px;
      border-radius: 12px;
      display: inline-block;
      min-width: 320px;
    }

    .series-title {
      color: #2c3e50;
      font-weight: bold;
      font-size: 18px;
      margin-bottom: 10px;
    }

    .series-container {
      display: flex;
      flex-direction: column;
    }

    .main-branch {
      border-left: 2px solid #ccc;
      margin-left: 12px;
    }

    .season-wrapper {
      margin-left: 20px;
      position: relative;
    }

    .season-connector {
      position: absolute;
      left: -22px;
      top: 12px;
      width: 18px;
      height: 2px;
      background: #ccc;
    }

    .season-item {
      margin: 8px 0;
    }

    .season-name {
      font-weight: 600;
    }

    .episode-branch {
      border-left: 2px solid #ddd;
      margin-left: 20px;
      margin-top: 4px;
    }

    .episode-wrapper {
      margin-left: 20px;
      position: relative;
    }

    .episode-connector {
      position: absolute;
      left: -22px;
      top: 10px;
      width: 18px;
      height: 2px;
      background: #ddd;
    }

    .episode-item {
      margin: 4px 0;
    }

    .more-seasons {
      margin: 8px 0;
      color: #888;
    }
	

   .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    display: flex;  /* всегда flex */

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
	}

	.lightbox.active {
    opacity: 1;
    visibility: visible;
	}

	.lightbox img {
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 80px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
	}

	.lightbox-close:hover { opacity: 1; }

    hr {
      border: none;
      border-top: 2px solid #e0e0e0;
      margin: 40px 0;
    }

    footer {
      background: #004242;
      color: #ccc;
      text-align: center;
      padding: 20px;
      font-size: 14px;
    }
    footer a {
      color: #ccc;
      text-decoration: none;
      margin: 0 10px;
    }
    footer a:hover { text-decoration: underline; }